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
+4 -1
View File
@@ -351,8 +351,11 @@ class Parser(object):
if newline.value == '':
# Must be a DEDENT, just continue.
newline = newline.get_previous()
elif newline.value != '\n':
# This may happen if error correction strikes and removes
# a whole statement including '\n'.
break
else:
assert newline.value == '\n'
newline.value = ''
if self._last_failed_start_pos > newline._start_pos:
# It may be the case that there was a syntax error in a