ruff/crates/ruff_python_trivia/src
Charlie Marsh 3711f8ad59
Expand `SimpleTokenizer` to all keywords and single-character tokens (#6518)
## Summary

For #6485, I need to be able to use the `SimpleTokenizer` to lex the
space between any two adjacent expressions (i.e., the space between a
preceding and following node). This requires that we support a wider
range of keywords (like `and`, to connect the pieces of `x and y`), and
some additional single-character tokens (like `-` and `>`, to support
`->`). Note that the `SimpleTokenizer` does not support multi-character
tokens, so the `->` in a function signature is lexed as a `-` followed
by a `>` -- but this is fine for our purposes.
2023-08-14 10:35:31 -04:00
..
snapshots Expand `SimpleTokenizer` to all keywords and single-character tokens (#6518) 2023-08-14 10:35:31 -04:00
cursor.rs Rename `ruff_python_whitespace` to `ruff_python_trivia` (#5886) 2023-07-19 11:48:27 -04:00
lib.rs Remove parser dependency from ruff-python-ast (#6096) 2023-07-26 17:47:22 +02:00
textwrap.rs Remove parser dependency from ruff-python-ast (#6096) 2023-07-26 17:47:22 +02:00
tokenizer.rs Expand `SimpleTokenizer` to all keywords and single-character tokens (#6518) 2023-08-14 10:35:31 -04:00
whitespace.rs Remove `Parse` trait (#6235) 2023-08-01 18:35:03 +02:00