ruff/crates/ruff_python_trivia/src
konsti 2cbe1733c8
Use CommentRanges in backwards lexing (#7360)
## Summary

The tokenizer was split into a forward and a backwards tokenizer. The
backwards tokenizer uses the same names as the forwards ones (e.g.
`next_token`). The backwards tokenizer gets the comment ranges that we
already built to skip comments.

---------

Co-authored-by: Micha Reiser <micha@reiser.io>
2023-09-16 03:21:45 +00:00
..
snapshots Add support for multi-character operator tokens to SimpleTokenizer (#6563) 2023-08-16 09:09:19 -04:00
comment_ranges.rs Use CommentRanges in backwards lexing (#7360) 2023-09-16 03:21:45 +00:00
cursor.rs Use CommentRanges in backwards lexing (#7360) 2023-09-16 03:21:45 +00:00
lib.rs Use CommentRanges in backwards lexing (#7360) 2023-09-16 03:21:45 +00:00
textwrap.rs Remove parser dependency from ruff-python-ast (#6096) 2023-07-26 17:47:22 +02:00
tokenizer.rs Use CommentRanges in backwards lexing (#7360) 2023-09-16 03:21:45 +00:00
whitespace.rs Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00