some parser end positions changed

This commit is contained in:
David Halter committed 2013-04-15 10:22:27 +04:30
1 parent bafb17001b
commit b08390c136
5 files changed
+14 -5

No files matched your search

+2
View File
@@ -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