Skip to content
Snippets Groups Projects
Commit 1e6f1e44 authored by Henning Glawe's avatar Henning Glawe
Browse files

fix case when floating matcher has submatchers

parent a4468e7b
Branches
Tags
No related merge requests found
......@@ -1159,7 +1159,7 @@ class SimpleParser(object):
idx -= 1
elif self.context[len(self.context) - 1].compiledMatcher.floating and self.parserBuilder.compiledMatchers[targetMatcher.index].floating:
# we are in a floating match and we go to another one, rewind only the floating part
while not states[idx].floating:
while not self.context[idx].compiledMatcher.floating:
idx += 1
idx -= 1
# close
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment