1
0
forked from VimPlug/jedi

fix position problems which came with lambdas

This commit is contained in:
David Halter
2013-02-23 00:40:34 +04:30
parent 7f051087e5
commit 6912764923
2 changed files with 30 additions and 15 deletions

View File

@@ -358,7 +358,7 @@ class Parser(object):
elif tok in ['lambda', 'for', 'in']:
# don't parse these keywords, parse later in stmt.
if tok == 'lambda':
breaks.remove(':')
breaks.discard(':')
elif token_type == tokenize.NAME:
n, token_type, tok = self._parse_dot_name(self.current)
# removed last entry, because we add Name