[LEXER] minor fix in str condition

This commit is contained in:
Tiago Sousa 2023-05-06 16:37:24 +01:00
parent c22ab63479
commit db9411d0d0

View file

@ -19,7 +19,7 @@ tokens = [
# STR needs to be the first one to catch # STR needs to be the first one to catch
def t_STR(t): def t_STR(t):
r"\"[^\"]+\" " r"\"[^\"]+\""
return t return t
@ -86,7 +86,7 @@ def t_BOOL(t):
# ID needs to be the last so it doesnt catch everything (literally) # ID needs to be the last so it doesnt catch everything (literally)
def t_ID(t): def t_ID(t):
r"[\w.]+" r"[\w_]+(\.[\w_]+)*"
return t return t