mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-10 05:22:44 +08:00
Handle nested statements.
This commit is contained in:
@@ -116,10 +116,10 @@ def test_indentation_errors(code, positions):
|
||||
'b"" = 1',
|
||||
'"" "" = 1',
|
||||
'def foo(): (yield 1) = 3',
|
||||
'def foo(): x = yield 1 = 3'
|
||||
'',
|
||||
#'(True,) = x',
|
||||
#'([False], a) = x',
|
||||
'def foo(): x = yield 1 = 3',
|
||||
'(a if a else a) = a',
|
||||
'(True,) = x',
|
||||
'([False], a) = x',
|
||||
|
||||
# SyntaxErrors from Python/symtable.c
|
||||
'def f(x, x): pass',
|
||||
|
||||
Reference in New Issue
Block a user