ruff/crates/ruff_python_parser/src
Andrew Gallant a827b16ebd ruff_python_parser: add Tokens::before method
This is analogous to the existing `Tokens::after` method. Its
implementation is almost identical.

We plan to use this for looking at the tokens immediately before the
cursor when fetching completions.
2025-05-29 10:31:30 -04:00
..
lexer Use #[expect(lint)] over #[allow(lint)] where possible (#17822) 2025-05-03 21:20:31 +02:00
parser Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
snapshots Raise syntax error when \ is at end of file (#17409) 2025-04-15 21:26:12 +05:30
error.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
lexer.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
lib.rs ruff_python_parser: add Tokens::before method 2025-05-29 10:31:30 -04:00
semantic_errors.rs [ty] Don't warn yield not in function when yield is in function (#18008) 2025-05-21 18:16:25 +02:00
string.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
token.rs [syntax-errors] PEP 701 f-strings before Python 3.12 (#16543) 2025-03-18 11:12:15 -04:00
token_set.rs Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30
token_source.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
typing.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00