mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Emit LexError
for dedent to incorrect level (#7638)
This commit is contained in:
parent
10e35e38d7
commit
8ce138760a
5 changed files with 126 additions and 13 deletions
|
@ -366,7 +366,7 @@ if (
|
|||
):
|
||||
pass
|
||||
|
||||
z = (
|
||||
z = (
|
||||
a
|
||||
+
|
||||
# a: extracts this comment
|
||||
|
@ -377,7 +377,7 @@ if (
|
|||
x and y
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
z = (
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue