mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:56 +00:00
![]() ## Summary This PR fixes a bug which sends the lexer into infinite loop for an invalid input. The code in question is `[1` where the nesting is never finished. This means that the lexer will keep emitting the `Err` token forever. ## Test Plan Add a test case which collects all the tokens from the lexer. This just makes sure that it doesn't go into infinite loop. |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml |