mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-18 19:45:57 +08:00
All tests except the Interpreter tests are working again.
This commit is contained in:
@@ -6,7 +6,7 @@ from collections import namedtuple
|
||||
|
||||
from jedi import common
|
||||
from jedi.evaluate import imports
|
||||
from jedi.evaluate.helpers import deep_ast_copy, call_of_leaf
|
||||
from jedi.evaluate.helpers import call_of_leaf
|
||||
from jedi import parser
|
||||
from jedi.parser import tokenize, token
|
||||
|
||||
|
||||
@@ -532,7 +532,8 @@ class FastTokenizer(object):
|
||||
self._parentheses_level = 0
|
||||
# We need to simulate a newline before the indent, because the
|
||||
# open parentheses ignored them.
|
||||
previous_type = NEWLINE
|
||||
if re.search('\n\s*', prefix):
|
||||
previous_type = NEWLINE
|
||||
|
||||
# Parentheses ignore the indentation rules. The other three stand for
|
||||
# new lines.
|
||||
|
||||
Reference in New Issue
Block a user