1
0
forked from VimPlug/jedi

further fix for *-arguments in arglist

This commit is contained in:
Claude
2016-02-09 18:23:24 +01:00
parent a09611197b
commit 8819b2133a

View File

@@ -60,6 +60,10 @@ class Arguments(tree.Base):
continue
elif child in ('*', '**'):
yield len(child.value), next(iterator)
elif tree.is_node(child, 'argument') and \
child.children[0] in ('*', '**'):
assert len(child.children) == 2
yield len(child.children[0].value), child.children[1]
else:
yield 0, child