1
0
forked from VimPlug/jedi

some parser end positions changed

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

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