Skip to main content

build_ecosystem

Function build_ecosystem 

Source
pub fn build_ecosystem() -> Ecosystem
Expand description

The highlight registry — re-exported from escriba-ts, where it now lives. It was defined HERE, which put escriba’s language knowledge behind a GPU dependency; the re-export keeps this face’s call sites and its tests unchanged while the runtime can now reach the same registry without wgpu. The highlight registry escriba renders and reasons through.

Tree-sitter grammars take precedence for the languages they cover; the zero-dep table backend fills every other language; escriba-local tables register LAST, so an upstream hikari backend for the same language always wins and a local table retires itself with no edit here.

It lived in escriba-render::gpu until 2026-08-08, which put escriba’s language knowledge behind a GPU dependency: the runtime could not ask what a symbol is without taking on wgpu, and the ratatui face — which needs no GPU at all — has no syntax highlighting to this day. Registry construction is not rendering.