1
0
forked from VimPlug/jedi

Fix some more stuff because of newer parso changes.

This commit is contained in:
Dave Halter
2017-07-14 18:21:52 +02:00
parent 945a2ba405
commit 2fcd2f8f89
5 changed files with 7 additions and 6 deletions

View File

@@ -180,7 +180,7 @@ class ContextualizedName(ContextualizedNode):
node = self._node.parent
compare = self._node
while node is not None:
if node.type in ('testlist_comp', 'testlist_star_expr', 'exprlist'):
if node.type in ('testlist', 'testlist_comp', 'testlist_star_expr', 'exprlist'):
for i, child in enumerate(node.children):
if child == compare:
indexes.insert(0, (int(i / 2), node))