Commit 246bb826 authored by Igor Dejanovic's avatar Igor Dejanovic

Fix in the Combine decorator

parent 2951f542
......@@ -383,6 +383,7 @@ class Combine(Decorator):
def _parse(self, parser):
results = []
old_in_lex_rule = parser._in_lex_rule
parser._in_lex_rule = True
self.c_pos = parser.position
try:
......@@ -398,7 +399,7 @@ class Combine(Decorator):
parser.position = self.c_pos # Backtracking
raise
finally:
parser._in_lex_rule = False
parser._in_lex_rule = old_in_lex_rule
return results
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment