mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-31 15:48:24 +00:00
Update type alias soft keyword heuristic to be more strict about Equals
placement
This commit is contained in:
parent
b2d67c70f3
commit
af508c2c26
1 changed files with 4 additions and 1 deletions
|
@ -115,7 +115,10 @@ where
|
|||
}
|
||||
Tok::Lsqb => nesting += 1,
|
||||
Tok::Rsqb => nesting -= 1,
|
||||
_ => {}
|
||||
// Allow arbitrary content within brackets for now
|
||||
_ if nesting > 0 => {}
|
||||
// Exit if unexpected tokens are seen
|
||||
_ => break,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue