1
0
forked from VimPlug/jedi

fix end_pos stuff for fast parser

This commit is contained in:
Dave Halter
2014-01-17 00:24:45 +01:00
parent 4bf72eeaed
commit 6ef75256e0

View File

@@ -174,6 +174,11 @@ class ParserNode(object):
self._set_items(node.parser, set_parent=set_parent)
node.old_children = node.children
node.children = []
scope = self.content_scope
while scope is not None:
scope.end_pos = node.content_scope.end_pos
scope = scope.parent
return node
def add_parser(self, parser, code):