Better completions in comments.
This commit is contained in:
1 parent
6ed864f032
commit
2d544c51c6
3 files changed
+38
-9
No files matched your search
@@ -550,6 +550,10 @@ class BaseNode(Base):
|
||||
try:
|
||||
return c.get_leaf_for_position(position, include_prefixes)
|
||||
except AttributeError:
|
||||
while c.type in ('indent', 'dedent'):
|
||||
# We'd rather not have indents and dedents as a leaf,
|
||||
# because they don't contain indentation information.
|
||||
c = c.get_next_leaf()
|
||||
return c
|
||||
|
||||
return None
|
||||
|
||||
Reference in new issue
Block a user