Expand description
escriba-ts — tree-sitter host for escriba.
The tree-sitter host now lives in hikari-ts (the fleet syntax spine’s
tree-sitter backend, self-contained on crates.io). This crate re-exports it
so escriba’s consumers keep a stable escriba_ts::… surface while the host
itself has exactly one home — the dedup + load-bearing-fix that also breaks
the old hikari-ts → escriba-ts dependency inversion (a fleet library must
not depend on an application crate).
escriba_ts::Semantic is hikari_token::Semantic (the deduped fleet
vocabulary), carrying the total From<Semantic> for hikari_core::HlClass.
Structs§
- Buffer
Parser - Per-buffer parser + last-parsed tree.
- Grammar
- A registered grammar — name, language, highlight config, claimed extensions.
- Grammar
Registry - Registry — language-name →
Grammar. - Highlight
Span - A colored text span — byte range + canonical
Semanticbucket. - Tree
Sitter Highlighter - The generic tree-sitter
Highlighter. Whole-document highlight; the result (gappySemanticspans) is funneled throughSpanSinkso the output is a coverage-complete hikari partition (gaps becomePlain). - Tree
Sitter Host - The tree-sitter host — builds the built-in
GrammarRegistryonce and hands out per-languageTreeSitterHighlighters + aLanguagePluginper grammar for registration into a hikariEcosystem. - Tree
Sitter Plugin - A hikari
LanguagePluginbacked by a tree-sitter grammar. - TsEdit
- A typed, byte-based description of one contiguous splice, for incremental
tree-sitter reparse. tree-sitter’s native unit is the byte offset + a
(row, byte-column)point, so this converts from a plain source splice — no tree-sitter type crosses the caller boundary.
Enums§
- Semantic
- The fleet semantic highlight class — the theme-facing vocabulary a renderer
maps to color. Variant set + order are load-bearing: they are
byte-identical to the historical
escriba_ts::Semantic/caixa_theme::Semanticso serde /JsonSchemaoutput does not drift when those crates re-export this one. - TsError
Functions§
- highlight
- Compute highlight spans over
srcusinggrammar.