Make comments greedy
This allows having multiple comments
This commit is contained in:
@@ -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'\('
|
||||
|
||||
Reference in New Issue
Block a user