Skip to content
Snippets Groups Projects
Commit a03272f2 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Enable match objects in parser

parent 80ef7a77
No related branches found
No related tags found
No related merge requests found
......@@ -446,8 +446,10 @@ class Parser(object):
comma_allowed = True
def __call__(self, expr_str, min_precedence=0):
lex_result = [(tag, s, idx)
for (tag, s, idx) in pytools.lex.lex(self.lex_table, expr_str)
lex_result = [(tag, s, idx, match_obj)
for (tag, s, idx, match_obj) in pytools.lex.lex(
self.lex_table, expr_str,
match_objects=True)
if tag is not _whitespace]
pstate = pytools.lex.LexIterator(lex_result, expr_str)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment