diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-21 05:29:51 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-21 05:29:51 -0300 |
| commit | 63538d28cee238ff53c731f965c22e615d43bec1 (patch) | |
| tree | fb00203f05512a9f14d0e8089a2f4b1919edffc9 /core/syntax.zig | |
| parent | 638122f18a66669c433e332c91fc8b068019681e (diff) | |
| parent | d04f4acfb9af968caaa53d6cf10a486622c95400 (diff) | |
| download | pardes-63538d28cee238ff53c731f965c22e615d43bec1.tar.gz pardes-63538d28cee238ff53c731f965c22e615d43bec1.zip | |
integration: the library for a browser reader on the gathered line: pardes-syntax-lib (`wqlkznns`: a dependent package names its languages, the patch view without the editor as formatPatch, build.zig's wasmModule and abi/wasm.zig, the manual) and pardes-reorg (`ukkqwpqu`: the terminals' line, the wire at 26); no conflict; its gate: .scratch/sketch/reorg/merge47, the numbers in PARDES.md (2026-11-21)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/syntax.zig')
| -rw-r--r-- | core/syntax.zig | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/syntax.zig b/core/syntax.zig index 00ee497f..1bb8fb52 100644 --- a/core/syntax.zig +++ b/core/syntax.zig @@ -37,11 +37,10 @@ const Spec = struct { capture_styles: [256]u8 = undefined, }; +/// A grammar is in the build when the build gave its queries (build/core.zig +/// `treeSitter`): a tier's set, or the languages a package named. fn grammarSelected(comptime g: grammar_manifest.Grammar) bool { - return switch (g.tier) { - .minimal => minimal_grammars, - .full => full_grammars, - }; + return @hasDecl(ts_queries, g.name ++ "_highlights"); } fn specCount() comptime_int { |
