fixes jedi-vim issue 9 - parser error in with statement
This commit is contained in:
1 parent
bddd097b93
commit
1d2debf38d
2 files changed
+6
-1
No files matched your search
+2
-1
@@ -1702,7 +1702,8 @@ class PyFuzzyParser(object):
|
||||
# multiple statements because of with
|
||||
inits = []
|
||||
first = True
|
||||
while first or command == 'with' and tok != ':':
|
||||
while first or command == 'with' \
|
||||
and tok not in [':', '\n']:
|
||||
statement, tok = \
|
||||
self._parse_statement(added_breaks=added_breaks)
|
||||
if command == 'except' and tok in added_breaks:
|
||||
|
||||
Reference in new issue
Block a user