mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
![]() ## Summary This PR adds a new helper method on the `Cursor` called `eat_char2` which is similar to `eat_char` but accepts 2 characters instead of 1. It'll `bump` the cursor twice if both characters are found on lookahead. ## Test Plan `cargo test` |
||
---|---|---|
.. | ||
lexer | ||
snapshots | ||
context.rs | ||
function.rs | ||
lexer.rs | ||
lib.rs | ||
parser.rs | ||
python.lalrpop | ||
python.rs | ||
soft_keywords.rs | ||
string.rs | ||
token.rs | ||
typing.rs |