Add error token in a normal way to the syntax tree as ErrorLeaf.
This commit is contained in:
1 parent
aa97e4e714
commit
dd85fc6ffd
3 files changed
+2
-4
No files matched your search
@@ -499,9 +499,6 @@ class ParserWithRecovery(Parser):
|
||||
self._indent_counter -= 1
|
||||
elif typ == INDENT:
|
||||
self._indent_counter += 1
|
||||
elif typ == ERRORTOKEN:
|
||||
self._add_syntax_error('Strange token', start_pos)
|
||||
continue
|
||||
|
||||
yield typ, value, prefix, start_pos
|
||||
|
||||
|
||||
Reference in new issue
Block a user