mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
Fixed a single-quote bug in Tokenizer
This commit is contained in:
parent
817e967716
commit
0f6fe97bf4
@ -153,7 +153,7 @@ class Error(Exception):
|
|||||||
class Tokenizer:
|
class Tokenizer:
|
||||||
quotes = '"`'
|
quotes = '"`'
|
||||||
nonbacktickquotes = '"'
|
nonbacktickquotes = '"'
|
||||||
validChars = string.ascii[33:].translate(string.ascii, '\'"`[]')
|
validChars = string.ascii[33:].translate(string.ascii, '"`[]')
|
||||||
def __init__(self, tokens=''):
|
def __init__(self, tokens=''):
|
||||||
self.validChars = self.validChars.translate(string.ascii, tokens)
|
self.validChars = self.validChars.translate(string.ascii, tokens)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user