fixed some position issues
This commit is contained in:
1 parent
56ca0cbfaa
commit
3eeecff1a1
2 files changed
+5
-5
No files matched your search
+2
-2
@@ -430,8 +430,8 @@ class Parser(object):
|
||||
except (StopIteration, common.MultiLevelStopIteration):
|
||||
# on finish, set end_pos correctly
|
||||
s = self.scope
|
||||
while s is not None and (not isinstance(s, pr.Module)
|
||||
and isinstance(s, pr.SubModule)):
|
||||
while s is not None and not (isinstance(s, pr.Module)
|
||||
and not isinstance(s, pr.SubModule)):
|
||||
s.end_pos = self.end_pos
|
||||
s = s.parent
|
||||
raise
|
||||
|
||||
Reference in new issue
Block a user