forked from VimPlug/jedi
Include statements to Script.definition if it has docstring
This commit is contained in:
@@ -216,6 +216,9 @@ def find_name(scope, name_str, position=None, search_global=False,
|
||||
# so just ignore it.
|
||||
continue
|
||||
|
||||
if r.docstr:
|
||||
res_new.append(r)
|
||||
|
||||
scopes = follow_statement(r, seek_name=name_str)
|
||||
add += remove_statements(scopes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user