1
0
forked from VimPlug/jedi

Don't start parsing in our own API.

This commit is contained in:
Dave Halter
2017-03-20 08:44:52 +01:00
parent 53b4e78a9b
commit 9dedb9ff68
4 changed files with 10 additions and 9 deletions

View File

@@ -134,7 +134,7 @@ def get_stack_at_position(grammar, code_lines, module_node, pos):
p = parser.ParserWithRecovery(grammar, code, start_parsing=False)
try:
p.parse(tokenizer=tokenize_without_endmarker(code))
p.parse(tokens=tokenize_without_endmarker(code))
except EndMarkerReached:
return Stack(p.pgen_parser.stack)
raise SystemError("This really shouldn't happen. There's a bug in Jedi.")