Generate error tokens in the tokenizer if the indentation is dedented wrongly.

This commit is contained in:
Dave Halter
2017-07-09 10:44:24 +02:00
parent 8ad37f6036
commit 5b5e4a0616
3 changed files with 35 additions and 3 deletions

View File

@@ -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