ruff/crates/ruff_python_parser/src/lexer
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
..
cursor.rs Add eat_char2 for the lexer (#6968) 2023-08-29 17:18:02 +05:30
indentation.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00