mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-18 06:19:39 +08:00
Make sure error token set the new_line flag when necessary
Should solve #855
This commit is contained in:
committed by
Dave Halter
parent
5513f72987
commit
0fb386d7e2
@@ -233,6 +233,8 @@ def generate_tokens(readline, use_exact_op_types=False):
|
|||||||
if not line:
|
if not line:
|
||||||
if contstr:
|
if contstr:
|
||||||
yield TokenInfo(ERRORTOKEN, contstr, contstr_start, prefix)
|
yield TokenInfo(ERRORTOKEN, contstr, contstr_start, prefix)
|
||||||
|
if contstr.endswith('\n'):
|
||||||
|
new_line = True
|
||||||
break
|
break
|
||||||
|
|
||||||
lnum += 1
|
lnum += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user