diff --git a/02_syntax/lexer.py b/02_syntax/lexer.py index 46e7cbf..3274be1 100644 --- a/02_syntax/lexer.py +++ b/02_syntax/lexer.py @@ -49,7 +49,7 @@ def t_whitespace(t): t.lexer.lineno += t.value.count('\n') def t_comment(t): - r'\(%(.|\n)*%\)' + r'\(%(.|\n)*?%\)' t.lexer.lineno += t.value.count('\n') t_LPAREN = r'\('