diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 06:00:14 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | 82d998af568caebd7fe28c4f6fb7feb1bfb4572f (patch) | |
| tree | 8cf486f1590f65322fe18c2d91f0c8573bb5ae85 /test/deck/replay.zig | |
| parent | b06543725a84ac5ce8cc48810b526c00032247cf (diff) | |
| download | pardes-82d998af568caebd7fe28c4f6fb7feb1bfb4572f.tar.gz pardes-82d998af568caebd7fe28c4f6fb7feb1bfb4572f.zip | |
syntax: a grammar handed in at run time, beside the compiled-in table (docs/next-editor.md, R4): `Language` is a program's own (a sketch's DSL: its tree-sitter language, its highlights, textobjects and indents sources, told by an extension), `addLanguage` puts it among the grammars a path's extension finds and `forgetLanguages` drops it with its parser and queries (before the code it points into is unloaded); one `byExt` finds a grammar for forExt, supportsPath and specFor where each looped the table itself, a Spec's language is its function or the pointer handed in (`langOf`), and stop drops each spec through the same dropSpec; test: a grammar handed in colours and walks as the compiled-in one; core-test 811 of 950, the syntax snapshots byte-identical
Diffstat (limited to 'test/deck/replay.zig')
0 files changed, 0 insertions, 0 deletions
