mirror of
https://github.com/davidhalter/parso.git
synced 2026-11-02 17:37:29 +08:00
Handle nested statements.
This commit is contained in:
1 parent
d48e927224
commit
6bdccd61cc
2 files changed
+15
-5
No files matched your search
@@ -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