forked from VimPlug/jedi
the statement 'a=b=c' returned 'b' only and ignored 'a' - fixes #45
This commit is contained in:
@@ -1541,7 +1541,7 @@ class PyFuzzyParser(object):
|
|||||||
elif tok.endswith('=') and tok not in ['>=', '<=', '==', '!=']:
|
elif tok.endswith('=') and tok not in ['>=', '<=', '==', '!=']:
|
||||||
# there has been an assignement -> change vars
|
# there has been an assignement -> change vars
|
||||||
if level == 0:
|
if level == 0:
|
||||||
set_vars = used_vars
|
set_vars += used_vars
|
||||||
used_vars = []
|
used_vars = []
|
||||||
elif tok in opening_brackets:
|
elif tok in opening_brackets:
|
||||||
level += 1
|
level += 1
|
||||||
|
|||||||
@@ -207,6 +207,7 @@ class TestRegression(Base):
|
|||||||
assert len(self.complete(s))
|
assert len(self.complete(s))
|
||||||
|
|
||||||
def test_os_nowait(self):
|
def test_os_nowait(self):
|
||||||
|
""" github issue #45 """
|
||||||
s = self.complete("import os; os.P_")
|
s = self.complete("import os; os.P_")
|
||||||
assert 'P_NOWAIT' in [i.word for i in s]
|
assert 'P_NOWAIT' in [i.word for i in s]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user