support backtick strings

This commit is contained in:
j 2020-05-26 10:22:58 +02:00
parent db241cec0e
commit 11376c5d7d

View file

@ -95,7 +95,7 @@ def tokenize(source):
'.', ',', ';' '.', ',', ';'
] ]
REGEXP = 'abcdefghijklmnopqrstuvwxyz' REGEXP = 'abcdefghijklmnopqrstuvwxyz'
STRING = '\'"' STRING = '\'"`'
WHITESPACE = ' \t' WHITESPACE = ' \t'
def is_regexp(): def is_regexp():
# checks if a forward slash is the beginning of a regexp, # checks if a forward slash is the beginning of a regexp,