From e8f0786a05f25bd10a71d2d4dc82ea0f685b4932 Mon Sep 17 00:00:00 2001 From: may Date: Sun, 25 Jan 2026 13:34:25 +0100 Subject: [PATCH] add a new Section TagKind for things like markdown and typst, so headers don't have to be structs, which doesn't really make sense --- helix-term/src/commands/syntax.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helix-term/src/commands/syntax.rs b/helix-term/src/commands/syntax.rs index 26c4cfa7..f1adf4fd 100644 --- a/helix-term/src/commands/syntax.rs +++ b/helix-term/src/commands/syntax.rs @@ -43,6 +43,7 @@ enum TagKind { Interface, Macro, Module, + Section, Struct, Type, } @@ -56,6 +57,7 @@ impl TagKind { Self::Interface => "interface", Self::Macro => "macro", Self::Module => "module", + Self::Section => "section", Self::Struct => "struct", Self::Type => "type", } @@ -69,6 +71,7 @@ impl TagKind { "interface" => Some(TagKind::Interface), "macro" => Some(TagKind::Macro), "module" => Some(TagKind::Module), + "section" => Some(TagKind::Section), "struct" => Some(TagKind::Struct), "type" => Some(TagKind::Type), _ => None, -- 2.51.2