mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 01:38:36 +08:00
Errortokens should also make the parser fail in the normal parser.
This commit is contained in:
@@ -156,7 +156,9 @@ class Parser(object):
|
||||
|
||||
def _tokenize(self, tokenizer):
|
||||
for typ, value, start_pos, prefix in tokenizer:
|
||||
if typ == OP:
|
||||
if typ == ERRORTOKEN:
|
||||
raise Parser.ParserError
|
||||
elif typ == OP:
|
||||
typ = token.opmap[value]
|
||||
yield typ, value, prefix, start_pos
|
||||
|
||||
|
||||
Reference in New Issue
Block a user