AFT's downloaded-grammar loader handled exactly one grammar (Luau). This change lets it handle several, so a contributed grammar such as SystemVerilog can ship the same way.
Downloaded grammars are keyed by their manifest language name. One explicit table maps each one to its outline/zoom extractor (Luau only today). Tests refuse an unmapped grammar, a duplicate name, or a colliding file extension.
LangId stays closed for extractor-backed languages.
Luau's identity, cache path and stored record keys are byte-for-byte unchanged, so upgrading triggers no reindex.
The grammar build and loader workflows iterate the manifest instead of hard-coding Luau.
Search-quality: engine_unwired. The fenced files change only language-id resolution and one gap-disclosure entry point; rows stay byte-equal.
Summary by cubic
Makes the downloaded-grammar loader handle multiple grammars instead of exactly one (Luau), so a contributed grammar like SystemVerilog can ship the same way with minimal added machinery.
A grammar ships in two PRs: the first adds a pin that builds, verifies, and publishes the candidate; the second adopts it into the manifest with its extractor.
Downloaded grammars are keyed by manifest language and mapped to outline, zoom, and meaning search extractors through one explicit table (Luau only today).
The build, publish, loader, and checker workflows iterate the manifest instead of hard-coding Luau, and every candidate must load its export and parse its sample error-free.
Pinned src/parser.c sources may be up to 96 MiB (SystemVerilog's is about 66 MB); other sources keep the 8 MiB cap.
Luau's identity, cache path, and stored record keys are byte-for-byte unchanged, so upgrading triggers no reindex and search rows stay byte-equal.
Confidence Score: 5/5
The PR appears safe to merge, with no remaining findings from this review.
Summary
The PR lets downloaded grammars use separate entries keyed by language while keeping Luau’s stored identity unchanged.
AFT selects each downloaded grammar by its manifest language.
Scans and search results now recognize downloaded grammars by extension.
Grammar build and loader jobs now work through manifest entries.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Manifest entries and candidate pins] --> B[Build twice and compare bytes]
B --> C[Check hash and size]
C --> D[Load grammar and parse sample]
D --> E[Publish immutable asset]
E --> F[Adopt manifest entry with extractor]