summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
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);