From 117d20c5274b6ed95f728a744ef6954738e7557d Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Fri, 3 Oct 2025 19:28:14 +0100 Subject: [PATCH] Add doc comment --- src/parse/syntax.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/parse/syntax.rs b/src/parse/syntax.rs index 351e684a4..7dbec3187 100644 --- a/src/parse/syntax.rs +++ b/src/parse/syntax.rs @@ -612,6 +612,9 @@ pub(crate) enum StringKind { #[derive(PartialEq, Eq, Debug, Clone, Copy, Hash)] 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, // TODO: We should either have a AtomWithWords(HighlightKind) or a // separate String, Text and Comment kind.