summaryrefslogtreecommitdiff
path: root/dev/KindJob.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-21 01:31:16 -0300
committerGabriel Schneider <[email protected]>2026-11-21 01:31:33 -0300
commit44b4d81cd1ba49a035e66699416639b46723c872 (patch)
tree9e4d0774c579249bc36fb275e2dee62c5e81f238 /dev/KindJob.zig
parent6d937cd125ca04a2edb92b2d014014ee6c2eb45d (diff)
downloadpardes-44b4d81cd1ba49a035e66699416639b46723c872.tar.gz
pardes-44b4d81cd1ba49a035e66699416639b46723c872.zip
library: a dependent package names its languages: `.languages = "rust"` (or a list) replaces the `.grammars` tier with the languages named and what each needs, the manifest's new `needs` field (markdown brings markdown_inline; no other grammar needs one: a fence's language is coloured when it is in the build), so a browser reader builds one module per language; a name the manifest does not have, or `.grammars` beside `.languages`, ends the configure with exit 1 and the names it has (Zig only logs an option it cannot read in a dependency and builds on with exit 0); build.zig exports `grammar_manifest` for a consumer's build script to loop over at configure time; build/core.zig treeSitter takes a set (`GrammarSet`, `tierSet`) and syntax.zig knows the set by the queries the build gave (`@hasDecl(ts_queries, ...)`), not by the tier; test/consumer loops over the manifest (`each-language`, 26/26: each language alone is in its build, linked by its symbol, and no other is), `test` runs rust and markdown of it and a configure with `klingon` that fails saying so
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev/KindJob.zig')
0 files changed, 0 insertions, 0 deletions