mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 15:14:19 -05:00
Mention that Cursor is based on rustc's implementation. (#12109)
This commit is contained in:
@@ -5,6 +5,8 @@ use ruff_text_size::{TextLen, TextSize};
|
||||
pub(crate) const EOF_CHAR: char = '\0';
|
||||
|
||||
/// A cursor represents a pointer in the source code.
|
||||
///
|
||||
/// Based on [`rustc`'s `Cursor`](https://github.com/rust-lang/rust/blob/d1b7355d3d7b4ead564dbecb1d240fcc74fff21b/compiler/rustc_lexer/src/cursor.rs)
|
||||
#[derive(Clone, Debug)]
|
||||
pub(super) struct Cursor<'src> {
|
||||
/// An iterator over the [`char`]'s of the source code.
|
||||
|
||||
Reference in New Issue
Block a user