1
0
forked from VimPlug/jedi

add an empty IsScope class to match all scopes

This commit is contained in:
David Halter
2013-02-14 20:54:26 +04:00
parent 52b32a01c1
commit cda84dc92a
3 changed files with 9 additions and 5 deletions

View File

@@ -634,7 +634,7 @@ def follow_call_list(call_list, follow_array=False):
def follow_call(call):
"""Follow a call is following a function, variable, string, etc."""
path = call.generate_call_path()
scope = call.get_parent_until((pr.Scope, er.Execution))
scope = call.get_parent_until(pr.IsScope)
return follow_call_path(path, scope, call.start_pos)