summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 03:35:02 -0300
committerGabriel Schneider <[email protected]>2026-11-10 04:08:29 -0300
commita9529fa5712298e9005b77b471400529a2ebbc32 (patch)
tree50633449f495e32f0a263277c260c7bef1a0db4d /build.zig
parentc40b95b8f938e01b7e8846bae53f16b0c1cd5654 (diff)
downloadpardes-a9529fa5712298e9005b77b471400529a2ebbc32.tar.gz
pardes-a9529fa5712298e9005b77b471400529a2ebbc32.zip
hxdiff: a case may name its file pane ("path", whose extension picks the grammar), and test/hxcases/indent.jsonl pins the new line's indent in a Zig, a Python, a Rust and a plain-text file against the reference helix with its grammars, typed into a real hx in a pty by hx_indent.py since the harness runs without any; zig build hxdiff runs it before the suite
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 1b9d9651..27728239 100644
--- a/build.zig
+++ b/build.zig
@@ -1346,6 +1346,14 @@ pub fn build(b: *std.Build) void {
// runs each case in a file pane and a pty pane and compares the two.
run_hxdiff.addPassthruArgs();
run_hxdiff.setCwd(b.path("."));
+ // the new line's indent per file type, against the reference helix
+ // with its grammars (test/hxcases/hx_indent.py): before the suite,
+ // whose count stays the last line
+ const run_hxindent = b.addRunArtifact(hxdiff);
+ run_hxindent.has_side_effects = true;
+ run_hxindent.addArgs(&.{ "--strict", "test/hxcases/indent.jsonl", "test/hxcases/indent-goldens.jsonl" });
+ run_hxindent.setCwd(b.path("."));
+ run_hxdiff.step.dependOn(&run_hxindent.step);
const hxdiff_step = b.step("hxdiff", "compare Helix results (-- --strict cases reference [waivers]; cases alone emits; --parity: a pty pane against a file pane)");
hxdiff_step.dependOn(&run_hxdiff.step);