1
0
forked from VimPlug/jedi

lambdas: fix problems with reverse tokenizer

This commit is contained in:
David Halter
2012-12-24 01:26:35 +01:00
parent 716d2362fd
commit f05b960386
2 changed files with 8 additions and 1 deletions

View File

@@ -1322,6 +1322,7 @@ class PyFuzzyParser(object):
n = Name(self.module, names, first_pos, self.end_pos) if names \
else None
#if self.module.path != '__builtin__': print n
return n, token_type, tok
def _parseimportlist(self):
@@ -1555,8 +1556,9 @@ class PyFuzzyParser(object):
if ret is not None:
ret.parent = lambd
lambd.returns.append(ret)
lambd.end_pos = ret.end_pos
lambd.parent = self.scope
lambd.end_pos = self.end_pos
#print lambd, added_breaks, ret, param
tok_list[-1] = lambd
continue
elif token_type == tokenize.NAME: