1
0
forked from VimPlug/jedi

If an INDENT is the next supposed token, we should still be able to complete.

This commit is contained in:
Dave Halter
2017-01-29 14:06:22 +01:00
parent b0f340748c
commit 40b6079ebd
2 changed files with 11 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ class Completion:
completion_names = list(self._get_keyword_completion_names(allowed_keywords))
if token.NAME in allowed_tokens:
if token.NAME in allowed_tokens or token.INDENT in allowed_tokens:
# This means that we actually have to do type inference.
symbol_names = list(self.stack.get_node_names(grammar))