ruff/crates/ruff_python_parser
Dhruv Manilawala 4d49d5e845
Add eat_char2 for the lexer (#6968)
## 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`
2023-08-29 17:18:02 +05:30
..
src Add eat_char2 for the lexer (#6968) 2023-08-29 17:18:02 +05:30
build.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
Cargo.toml Update lexer tests to use snapshots (#6658) 2023-08-22 18:23:19 +00:00