diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/typ/building.typ | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/typ/building.typ b/docs/typ/building.typ index 901f2ca2..8403df9a 100644 --- a/docs/typ/building.typ +++ b/docs/typ/building.typ @@ -60,7 +60,7 @@ must share with its session; `pardes --help` lists every flag. [`-Dplatform`], [`tui`, `gui`, `macos`; absent: the tui and SDL shells together, installed into `~/.local`], [`-Dpdf`], [bool: build the pdf addon, fetching MuPDF the first time; default on once MuPDF is fetched, and off Linux], [`-Djpx`], [bool, `true`: JPEG 2000, and with it scanned PDFs], - [`-Dtree-sitter`], [`zig`, `minimal`, `full`; `full`], + [`-Dgrammars`], [the tree-sitter grammars compiled in: `none` (the runtime alone), `minimal` (C, C++ and Zig) or `full` (all of them; the default)], [`-Dembed-sources`], [bool, `false`: serve the sources under #file("/src")], [`-Dhome-install`], [bool: a bare `zig build` also copies the binaries into `~/.local/bin` and the addon steps theirs into `$XDG_DATA_HOME/pardes/addons`, default true; with `-Dplatform` only `true` copies, and the addons alone], [`-Dstamp-commit`], [bool: the git commit in `--version` and crash records; on for release builds and the `~/.local` install], @@ -104,7 +104,7 @@ it. const pardes = b.dependency("pardes", .{ .target = target, .optimize = optimize, - .@"tree-sitter" = .minimal, + .grammars = .minimal, }); exe.root_module.addImport("pardes-syntax", pardes.module("pardes-syntax")); ``` @@ -122,8 +122,8 @@ for a language's name. [`start`, `stop`], [tree-sitter's allocator, and the end of the parsers kept per language], ) -The `tree-sitter` option is the build's own: `zig`, `minimal` (C, C++ -and Zig) or `full`, the default. Every dependency but tree-sitter's +The `grammars` option is the build's own: `none` (the runtime alone), +`minimal` (C, C++ and Zig) or `full` (all of them; the default). Every dependency but tree-sitter's runtime is lazy in the manifest, so the package fetches the runtime and its set's grammars and compiles those alone; pardes's own build asks for what it is missing in one round. Zig still unpacks a lazy package whose @@ -146,7 +146,7 @@ a package imports one of the two. const pardes = b.dependency("pardes", .{ .target = target, .optimize = optimize, - .@"tree-sitter" = .minimal, + .grammars = .minimal, .editor = true, }); exe.root_module.addImport("pardes-editor", pardes.module("pardes-editor")); |
