Avoid duplicated matches by calling only OP_NEG handlers.

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