Skip to main content

Crate strop_syntax

Crate strop_syntax 

Source
Expand description

strop-syntax: tree-sitter highlighting. Parsers statically linked (0002 §2.2 — never dlopen’d grammars); queries are data (0001 §5.11), embedded defaults now, runtime overrides when config lands (0005).

Modules§

languages
The curated language registry (0002 §2.2: statically linked, always). All highlight queries are Helix-vendored (queries/ per language, MPL-2.0) — one upstream, one review surface, divergence watched weekly (0002 §7). Adding a language is one row here plus one crate in Cargo.toml — never a download, never a dlopen. C++ included specifically: its scanner is C++, the musl static-libstdc++ path the release gate guards (0002 §5).

Structs§

Highlighter
One language’s parser + highlight query. Reparses on demand; the incremental edit-diff feed (0001 pillar 4) lands when the core reports edits — prototype correctness first, per-frame cost is invisible at demo file sizes.
Span
A colored span, in byte offsets.

Enums§

Class
Semantic classes the renderer maps to palette colors. Kept small and stable; the query capture names map onto these.