mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-01 18:43:45 +08:00
In every case of a new line the tokenize position should be correct.
This commit is contained in:
1 parent
5edcf47512
commit
e60c06b691
1 file changed
+1
-1
@@ -293,7 +293,7 @@ def generate_tokens(readline, use_exact_op_types=False):
|
||||
typ = OP
|
||||
yield typ, token, spos, prefix
|
||||
|
||||
if new_line:
|
||||
if new_line or additional_prefix[-1:] == '\n':
|
||||
end_pos = lnum + 1, 0
|
||||
else:
|
||||
end_pos = lnum, max
|
||||
|
||||
Reference in new issue
Block a user