some parser end positions changed
This commit is contained in:
1 parent
bafb17001b
commit
b08390c136
5 files changed
+14
-5
No files matched your search
@@ -80,6 +80,8 @@ class Parser(object):
|
||||
if self.current[0] in (tokenize.NL, tokenize.NEWLINE):
|
||||
# we added a newline before, so we need to "remove" it again.
|
||||
self.end_pos = self._gen.previous[2]
|
||||
if self.current[0] == tokenize.INDENT:
|
||||
self.end_pos = self._gen.last_previous[2]
|
||||
|
||||
self.start_pos = self.module.start_pos
|
||||
self.module.end_pos = self.end_pos
|
||||
|
||||
Reference in new issue
Block a user