Add doc comment

pull/889/head
Wilfred Hughes 2025-10-03 19:28:14 +07:00
parent 6d7b594aca
commit 117d20c527
1 changed files with 3 additions and 0 deletions

@ -612,6 +612,9 @@ pub(crate) enum StringKind {
#[derive(PartialEq, Eq, Debug, Clone, Copy, Hash)] #[derive(PartialEq, Eq, Debug, Clone, Copy, Hash)]
pub(crate) enum AtomKind { pub(crate) enum AtomKind {
/// The kind of this atom when we don't know anything else about
/// it. This is typically a variable, e.g. `foo`, or a literal
/// `123`. Note that string literals have a separate kind.
Normal, Normal,
// TODO: We should either have a AtomWithWords(HighlightKind) or a // TODO: We should either have a AtomWithWords(HighlightKind) or a
// separate String, Text and Comment kind. // separate String, Text and Comment kind.