forked from VimPlug/jedi
add parsing tests for name/call positions
This commit is contained in:
@@ -189,7 +189,6 @@ class Script(object):
|
||||
completions.append((c, s))
|
||||
return completions
|
||||
|
||||
|
||||
def _prepare_goto(self, goto_path, is_like_search=False):
|
||||
"""
|
||||
Base for completions/goto. Basically it returns the resolved scopes
|
||||
|
||||
@@ -81,7 +81,7 @@ class Parser(object):
|
||||
if self._current[0] in (tokenize.NL, tokenize.NEWLINE):
|
||||
# we added a newline before, so we need to "remove" it again.
|
||||
self.end_pos = self._gen.previous[2]
|
||||
if self._current[0] == tokenize.INDENT:
|
||||
elif self._current[0] == tokenize.INDENT:
|
||||
self.end_pos = self._gen.last_previous[2]
|
||||
|
||||
self.start_pos = self.module.start_pos
|
||||
|
||||
Reference in New Issue
Block a user