mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-24 17:28:36 +08:00
classes and functions are new statements and should never get removed by the error recovery.
This commit is contained in:
@@ -166,8 +166,9 @@ class Parser(object):
|
||||
# Done parsing, but another token is input
|
||||
raise ParseError("too much input", type, value, start_pos)
|
||||
else:
|
||||
self.error_recovery(self.grammar, self.stack, type, value, start_pos)
|
||||
break
|
||||
if self.error_recovery(self.grammar, self.stack, type,
|
||||
value, start_pos):
|
||||
break
|
||||
|
||||
def classify(self, type, value, start_pos):
|
||||
"""Turn a token into a label. (Internal)"""
|
||||
|
||||
Reference in New Issue
Block a user