mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
Try to use line numbers instead of offsets in the fast parser.
This commit is contained in:
@@ -480,3 +480,14 @@ def test_round_trip():
|
||||
|
||||
f = FastParser(load_grammar(), u(source))
|
||||
assert f.get_parsed_node().get_code() == source
|
||||
|
||||
|
||||
def test_parentheses_in_string():
|
||||
code = dedent('''
|
||||
def x():
|
||||
'('
|
||||
|
||||
import abc
|
||||
|
||||
abc.''')
|
||||
check_fp(code, 2, 1, 1)
|
||||
|
||||
Reference in New Issue
Block a user