multi line funcs with comments don't raise an error anymore - fixes jedi-vim issue 29
This commit is contained in:
1 parent
80609a676b
commit
5423dda8d3
3 files changed
+17
-1
No files matched your search
@@ -1426,6 +1426,11 @@ class PyFuzzyParser(object):
|
||||
else:
|
||||
token_type, tok = self.next()
|
||||
|
||||
while token_type == tokenize.COMMENT:
|
||||
# remove newline and comment
|
||||
self.next()
|
||||
token_type, tok = self.next()
|
||||
|
||||
first_pos = self.start_pos
|
||||
opening_brackets = ['{', '(', '[']
|
||||
closing_brackets = ['}', ')', ']']
|
||||
|
||||
Reference in new issue
Block a user