Avoid duplicated matches by calling only OP_NEG handlers.

parent 6303fe29
...@@ -199,7 +199,7 @@ class Parser(BisonParser): ...@@ -199,7 +199,7 @@ class Parser(BisonParser):
handlers = [] handlers = []
if retval.negated: if retval.negated:
handlers = handlers[:] + RULES[OP_NEG] handlers = RULES[OP_NEG]
for handler in handlers: for handler in handlers:
possibilities = handler(retval) possibilities = handler(retval)
......
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