mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-09 04:52:42 +08:00
Generate error tokens in the tokenizer if the indentation is dedented wrongly.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
for a in 'abc':
|
||||
for b in 'xyz':
|
||||
print a # indented with 8 spaces
|
||||
#: W101:0
|
||||
# TODO currently not an error, because the indentation matches.
|
||||
print(b) # indented with 1 tab
|
||||
if True:
|
||||
#: W101:0
|
||||
#: E101:0
|
||||
pass
|
||||
|
||||
#: E122+1
|
||||
|
||||
Reference in New Issue
Block a user