pub struct HighlightDef {
pub name: &'static str,
pub tag: &'static str,
pub parent_tag: &'static str,
pub aliases: &'static [&'static str],
}Expand description
A highlight category definition.
NOTE: This is the legacy structure used for tree-sitter highlight configuration.
For mapping captures to theme slots, use capture_to_slot instead.
Fields§
§name: &'static strThe canonical name (e.g., “keyword.function”)
tag: &'static strShort tag suffix for HTML elements (e.g., “kf” -> <a-kf>)
Empty string means no styling should be applied.
parent_tag: &'static strParent category tag for CSS inheritance (e.g., “k” for keyword.*) Empty string means no parent.
aliases: &'static [&'static str]Alternative names from nvim-treesitter/helix/other editors that map to this category