You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 I went on quite the hunt trying to see if there was context about this. As far as I can tell nobody talked about the rustc lexer and they probably would have if they based the design on it? I'm curious to hear from @MichaReiser though.
I was fairly certain that I mentioned in some comment that the implementation is derived from Rust in #4922 (inline comment or at least on the PR), but I didn't!
I was looking at ruff and rustc for inspo for lexing and the cursor files are pretty similar:
https://github.com/astral-sh/ruff/blob/d1079680bb29f6b797b5df15327195300f635f3c/crates/ruff_python_parser/src/lexer/cursor.rs
https://github.com/rust-lang/rust/blob/d1b7355d3d7b4ead564dbecb1d240fcc74fff21b/compiler/rustc_lexer/src/cursor.rs
The text was updated successfully, but these errors were encountered: