forked from VimPlug/jedi
further fix for *-arguments in arglist
This commit is contained in:
@@ -60,6 +60,10 @@ class Arguments(tree.Base):
|
|||||||
continue
|
continue
|
||||||
elif child in ('*', '**'):
|
elif child in ('*', '**'):
|
||||||
yield len(child.value), next(iterator)
|
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:
|
else:
|
||||||
yield 0, child
|
yield 0, child
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user