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

Fix in the Combine decorator

parent 2951f542
...@@ -383,6 +383,7 @@ class Combine(Decorator): ...@@ -383,6 +383,7 @@ class Combine(Decorator):
def _parse(self, parser): def _parse(self, parser):
results = [] results = []
old_in_lex_rule = parser._in_lex_rule
parser._in_lex_rule = True parser._in_lex_rule = True
self.c_pos = parser.position self.c_pos = parser.position
try: try:
...@@ -398,7 +399,7 @@ class Combine(Decorator): ...@@ -398,7 +399,7 @@ class Combine(Decorator):
parser.position = self.c_pos # Backtracking parser.position = self.c_pos # Backtracking
raise raise
finally: finally:
parser._in_lex_rule = False parser._in_lex_rule = old_in_lex_rule
return results 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