Make comments greedy

This allows having multiple comments
This commit is contained in:
Bananymous 2024-03-15 08:35:17 +02:00
parent cb4c194420
commit 004ee25273
1 changed files with 1 additions and 1 deletions

View File

@ -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'\('