Expand description
Syntax-highlight style types and the ExcerptHighlighter trait.
Moved from lattice-syntax so that lattice-runtime (which defines the
Document trait) can reference ExcerptHighlighter without pulling in
lattice-syntax — which has a transitive dep on lattice-mode →
lattice-runtime (cycle). lattice-cells has no lattice deps, breaking
the chain cleanly.
lattice-syntax re-exports everything from here so call-sites outside
lattice-cells / lattice-runtime see no path change.
Structs§
- Excerpt
Highlight - Per-excerpt entry produced by [
Document::excerpt_highlights]. - Refine
Span - DR.2 (2026-08-12): a byte range whose background differs from its row’s — intra-line diff refinement.
- Styled
Span - Byte-range span within one source line, carrying a semantic
Style.
Enums§
- Refine
Kind - Which side of a refined pair a
RefineSpanbelongs to. Picks the theme element, and nothing else. - Style
- Semantic style category emitted by the tree-sitter highlighter.
Traits§
- Excerpt
Highlighter - Trait implemented by
SyntaxHandle(and future highlight providers). Used byDocument::excerpt_highlightsso thatlattice-runtimecan expose per-excerpt highlighting through theDocumenttrait without taking a direct dep onlattice-syntax.