Expand description
The languages bezel can highlight: a row per grammar — the fence aliases it answers to, the tree-sitter grammar, and its highlights query. Each row is behind the feature of the same name.
Structs§
Statics§
- LANGS
- A slice rather than an array: its length is whatever the enabled features add up to, and an app that highlights one language compiles one grammar.
Functions§
- kind_of
- Map a tree-sitter highlight capture name onto the bezel vocabulary. Names
with no slot degrade to
HighlightKind::Variable, which the palettes paint in the text color — an unknown capture reads as plain text. - resolve
- Find the language a fence tag names. Tags are the raw first word of the
fence info string —
rust {.numberLines},rust,foo,Rust— so they are trimmed at the first space or comma and case-folded before lookup.