1
0
forked from VimPlug/jedi

Add the grammar as an argument to saving the parser.

This makes collisions of different grammars when loading from the cache impossible.
This commit is contained in:
Dave Halter
2017-03-22 18:32:49 +01:00
parent c41bee4253
commit 26cce4d078
10 changed files with 41 additions and 34 deletions

View File

@@ -134,7 +134,7 @@ class Script(object):
@cache.memoize_method
def _get_module_node(self):
parser = FastParser(self._grammar, self._source, self.path)
save_parser(self.path, parser, pickling=False)
save_parser(self._grammar, self.path, parser, pickling=False)
return parser.get_root_node()