fix goto_definition on lambda problem, fixes #274
This commit is contained in:
1 parent
22b11e0706
commit
2dd9ad7864
2 files changed
+6
No files matched your search
@@ -1059,6 +1059,8 @@ class Statement(Simple):
|
||||
lambd, tok = parse_lambda(token_iterator)
|
||||
if lambd is not None:
|
||||
result.append(lambd)
|
||||
else:
|
||||
continue
|
||||
|
||||
is_literal = token_type in [tokenize.STRING, tokenize.NUMBER]
|
||||
if isinstance(tok, Name) or is_literal:
|
||||
|
||||
Reference in new issue
Block a user