1
0
forked from VimPlug/jedi

Change the backwards tokenizer that keywords always stop.

This commit is contained in:
Dave Halter
2014-11-26 02:31:35 +01:00
parent a940c31a86
commit 1326a2137d

View File

@@ -127,6 +127,10 @@ class UserContext(object):
l = first_line if x == start_pos[0] else l
start_cursor = x, len(l) - end[1]
string += tok_str
if keyword.iskeyword(tok_str[::-1]):
# Keywords should always stop. The path will always end with
# them.
break
last_type = tok_type
# string can still contain spaces at the end