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
Auto Trait Implementations§
impl Freeze for HighlightDef
impl RefUnwindSafe for HighlightDef
impl Send for HighlightDef
impl Sync for HighlightDef
impl Unpin for HighlightDef
impl UnwindSafe for HighlightDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more