Commit 6d44fd22 authored by Stefan Behnel's avatar Stefan Behnel

Fix infinite loop when parsing invalid directives.

parent 515baae9
......@@ -3610,6 +3610,7 @@ def p_compiler_directive_comments(s):
new_directives = Options.parse_directive_list(directives_string, ignore_unknown=True)
except ValueError as e:
s.error(e.args[0], fatal=False)
s.next()
continue
for name in new_directives:
......
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