From db9411d0d0787d55cdb0211215b9ce784da7422b Mon Sep 17 00:00:00 2001 From: tiago Date: Sat, 6 May 2023 16:37:24 +0100 Subject: [PATCH] [LEXER] minor fix in str condition --- src/lexer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lexer.py b/src/lexer.py index b04c224..9269f0d 100644 --- a/src/lexer.py +++ b/src/lexer.py @@ -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