[LEXER] minor fix in str condition
This commit is contained in:
parent
c22ab63479
commit
db9411d0d0
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ tokens = [
|
|||
|
||||
# STR needs to be the first one to catch
|
||||
def t_STR(t):
|
||||
r"\"[^\"]+\" "
|
||||
r"\"[^\"]+\""
|
||||
return t
|
||||
|
||||
|
||||
|
@ -86,7 +86,7 @@ def t_BOOL(t):
|
|||
|
||||
# ID needs to be the last so it doesnt catch everything (literally)
|
||||
def t_ID(t):
|
||||
r"[\w.]+"
|
||||
r"[\w_]+(\.[\w_]+)*"
|
||||
return t
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue