Skip to main content

Module style

Module style 

Source
Expand description

Style category emitted by the highlighter, plus the capture-name table.

Style and StyledSpan now live in lattice-cells (to break the lattice-syntax → lattice-mode → lattice-runtime dep cycle). Re-exported here so all existing lattice_syntax::Style / StyledSpan call-sites see no change.

Structs§

StyledSpan
Byte-range span within one source line, carrying a semantic Style.

Enums§

Style
Semantic style category emitted by the tree-sitter highlighter.

Functions§

capture_priority
Capture-name priority: position in CAPTURE_NAMES (lower = higher precedence on overlap). Walks the dot-prefix hierarchy.
name_to_style_pub
Public re-export of the capture-name → Style mapping.
name_to_style_with_theme
TK.1: resolve a capture name that names a registered theme element rather than a builtin category.