pub enum HlClass {
}Expand description
A palette-independent semantic highlight class. A superset of the classes
egui / tree-sitter / the fleet’s Semantic enums produce, so every backend
lowers to this one waist and the theme layer maps it to color exactly once.
Variants§
Comment
Keyword
KeywordArg
A :keyword-style argument / symbol (lisp :kw, etc.).
Type
Function
Namespace
Variable
Constant
Str
Escape
Numeric
Boolean
Punctuation
Operator
Attribute
Special
Hyperlink
Whitespace
Error
Warning
A diagnostic/severity class (LSP + the fleet Semantic collapse).
Info
Hint
Added
A diff class (git signs, review UIs).
Removed
Unchanged
Diff context / normal-fg text in a diff view.
Plain
The default / unclassified class. Coverage gaps are filled with this.
Trait Implementations§
impl Copy for HlClass
impl Eq for HlClass
Source§impl From<Semantic> for HlClass
Semantic -> HlClass — total. Round-trips to identity through
hlclass_to_semantic for every Semantic variant (see the test), now
that HlClass carries the diagnostic + diff variants.
impl From<Semantic> for HlClass
Semantic -> HlClass — total. Round-trips to identity through
hlclass_to_semantic for every Semantic variant (see the test), now
that HlClass carries the diagnostic + diff variants.
impl StructuralPartialEq for HlClass
Auto Trait Implementations§
impl Freeze for HlClass
impl RefUnwindSafe for HlClass
impl Send for HlClass
impl Sync for HlClass
impl Unpin for HlClass
impl UnsafeUnpin for HlClass
impl UnwindSafe for HlClass
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