Filter all tokens dynamically instead of a predefined list.

parent 78daf989
pybison @ 2b1f8fd1
Subproject commit 4fac41ac1cd069d5ad889efccc00428d24583a5d
Subproject commit 2b1f8fd1b1055dc9f0e24fea7eae7be45c041882
......@@ -154,7 +154,7 @@ class Parser(BisonParser):
left, right = filter(None, match.groups())
# Filter words (otherwise they will be preprocessed as well)
if left + right in ['graph', 'raise']:
if (left + right).upper() in self.tokens:
return left + right
# If all characters on the right are numbers. e.g. "a4", the
......
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