forked from VimPlug/jedi
Fix a nasty issue in the tokenizer. Fixes #836.
At the same time there was a related issue of not cleaning up newlines properly.
This commit is contained in:
@@ -259,8 +259,7 @@ def generate_tokens(readline, use_exact_op_types=False):
|
||||
# line is an error token.
|
||||
txt = line[pos:]
|
||||
yield TokenInfo(ERRORTOKEN, txt, (lnum, pos), prefix)
|
||||
pos += 1
|
||||
continue
|
||||
break
|
||||
|
||||
prefix = additional_prefix + pseudomatch.group(1)
|
||||
additional_prefix = ''
|
||||
|
||||
Reference in New Issue
Block a user