1
0
forked from VimPlug/jedi

Most of the new diff parsers functionality should be working now. There are a few TODOs to solve, though.

This commit is contained in:
Dave Halter
2016-08-16 18:58:28 +02:00
parent b9040870c0
commit 54297cc4a5
2 changed files with 144 additions and 37 deletions

View File

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