1
0
forked from VimPlug/jedi

fixed the last remaining problems with fast_parser (not cached yet)

This commit is contained in:
David Halter
2012-12-16 03:50:50 +01:00
parent bcdf273c21
commit 36b75c3e15
3 changed files with 15 additions and 4 deletions

View File

@@ -1180,7 +1180,7 @@ class PyFuzzyParser(object):
self.top_module = top_module or self.module
try:
self.parse()
except StopIteration:
except common.MultiLevelStopIteration:
# sometimes StopIteration isn't catched. Just ignore it.
pass
@@ -1566,7 +1566,7 @@ class PyFuzzyParser(object):
string = set_string if set_string is not None else string + tok
token_type, tok = self.next()
except StopIteration:
except (StopIteration, common.MultiLevelStopIteration):
# comes from tokenizer
break
@@ -1606,7 +1606,7 @@ class PyFuzzyParser(object):
try:
type, tok, self.start_pos, self.end_pos, \
self.parserline = next(self.gen)
except StopIteration:
except (StopIteration, common.MultiLevelStopIteration):
# on finish, set end_pos correctly
s = self.scope
while s is not None: