1
0
forked from VimPlug/jedi

Fix the remaining fast parser issues.

This commit is contained in:
Dave Halter
2015-02-05 01:13:00 +01:00
parent b57ee880af
commit 109fdc53e0
2 changed files with 5 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ class DocstringMixin(object):
if isinstance(self, SubModule):
stmt = self.children[0]
else:
stmt = self.children[-1]
stmt = self.children[self.children.index(':') + 1]
if is_node(stmt, 'suite'): # Normally a suite
stmt = stmt.children[2] # -> NEWLINE INDENT stmt
if is_node(stmt, 'simple_stmt'):