Make comments greedy
This allows having multiple comments
This commit is contained in:
parent
cb4c194420
commit
004ee25273
|
@ -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'\('
|
||||
|
|
Loading…
Reference in New Issue