diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 22 |
1 files changed, 16 insertions, 6 deletions
@@ -3,15 +3,25 @@ //! builds the editor; docs/typ/building.typ has the rest. //! //! A package that depends on pardes is given its syntax, `pardes-syntax` -//! (core/lib_syntax.zig): +//! (`core/lib_syntax.zig`): //! -//! const pardes = b.dependency("pardes", .{ .target = target, .optimize = optimize, .grammars = .minimal }); +//! const pardes = b.dependency("pardes", .{ +//! .target = target, +//! .optimize = optimize, +//! .grammars = .minimal, +//! }); //! exe.root_module.addImport("pardes-syntax", pardes.module("pardes-syntax")); //! -//! and, when it asks, the text pane, `pardes-editor` (core/lib_editor.zig), -//! here with a grammar of its own handed in at run time: +//! and, when it asks, the text pane, `pardes-editor` +//! (`core/lib_editor.zig`), here with a grammar of its own handed in at +//! run time: //! -//! const pardes = b.dependency("pardes", .{ .target = target, .optimize = optimize, .grammars = .none, .editor = true }); +//! const pardes = b.dependency("pardes", .{ +//! .target = target, +//! .optimize = optimize, +//! .grammars = .none, +//! .editor = true, +//! }); //! exe.root_module.addImport("pardes-editor", pardes.module("pardes-editor")); //! //! `.grammars`: the tree-sitter grammars compiled in: `none` (the runtime @@ -22,7 +32,7 @@ //! Every dependency but tree-sitter's runtime is lazy in the manifest, so //! such a package fetches what it asked for and nothing else. //! `pardes-editor` has `pardes-syntax` in it as `.syntax`: a file belongs -//! to one module, so a package imports one of the two. test/consumer is +//! to one module, so a package imports one of the two. `test/consumer` is //! such a package, with both shapes; `lib-test`, which `unit-test` runs, //! builds and runs it. const std = @import("std"); |
