1
0
forked from VimPlug/jedi

fix some end_pos problems

This commit is contained in:
David Halter
2013-04-27 22:47:26 +04:30
parent 792808d835
commit 26ce32ec6b
2 changed files with 6 additions and 12 deletions

View File

@@ -430,7 +430,8 @@ class Parser(object):
except (StopIteration, common.MultiLevelStopIteration):
# on finish, set end_pos correctly
s = self.scope
while s is not None:
while s is not None and (not isinstance(s, pr.Module)
and isinstance(s, pr.SubModule)):
s.end_pos = self.end_pos
s = s.parent
raise