1
0
forked from VimPlug/jedi

combine power-or-atom_expr statements into one statement

This commit is contained in:
Claude
2016-02-15 10:20:25 +01:00
parent d5f08f8bdd
commit ca08b8270b
6 changed files with 6 additions and 7 deletions

View File

@@ -88,7 +88,7 @@ def call_of_name(name, cut_own_trailer=False):
return name
power = par.parent
if (tree.is_node(power, 'power') or tree.is_node(power, 'atom_expr')) \
if tree.is_node(power, 'power', 'atom_expr') \
and power.children[0] != name \
and not (power.children[-2] == '**' and
name.start_pos > power.children[-1].start_pos):