1
0
forked from VimPlug/jedi

Now finally all tests are running again (except the repl completion, which is a separate issue).

This commit is contained in:
Dave Halter
2016-06-06 09:22:50 +02:00
parent 4ec72d8f24
commit 7a170532d9

View File

@@ -131,6 +131,10 @@ def get_stack_at_position(grammar, source, module, pos):
raise OnErrorLeaf(user_stmt)
code = _get_code(source, user_stmt.start_pos, pos)
if code == ';':
# ; cannot be parsed.
code = ''
# Remove whitespace at the end. Necessary, because the tokenizer will parse
# an error token (there's no new line at the end in our case). This doesn't
# alter any truth about the valid tokens at that position.