summaryrefslogtreecommitdiff
path: root/test/hxdiff.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-28 16:41:37 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit78daa25e5c99cc0d71da36b6e0dcdd362b0cb284 (patch)
treefd98816559ccd4f4a54b1993a7defa39a4f7fda2 /test/hxdiff.zig
parent686673bfb67ac80ed464351528d9ab1bceaa1d02 (diff)
downloadpardes-78daa25e5c99cc0d71da36b6e0dcdd362b0cb284.tar.gz
pardes-78daa25e5c99cc0d71da36b6e0dcdd362b0cb284.zip
Tab after text leaves the syntax node in insert mode; Shift-Tab indents
helix smart_tab: in insert mode, Tab where text precedes the cursor on its line moves past the end of the node the cursor is in, the parent-node end of Alt-e; in leading blanks it indents. Only where the file has a grammar: the reference pins smart tab off, which a file without a grammar agrees with, so there Tab still indents. Shift-Tab is insert_tab, and the differential harness now reads the S- modifier. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/hxdiff.zig')
-rw-r--r--test/hxdiff.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/hxdiff.zig b/test/hxdiff.zig
index 627bbac3..48c7ab93 100644
--- a/test/hxdiff.zig
+++ b/test/hxdiff.zig
@@ -419,6 +419,9 @@ fn runCase(arena: std.mem.Allocator, case: Case, pane_kind: []const u8) !Result
} else if (std.mem.startsWith(u8, name, "A-")) {
key.alt = true;
name = name[2..];
+ } else if (std.mem.startsWith(u8, name, "S-")) {
+ key.shift = true;
+ name = name[2..];
} else break;
}
if (name.len == 1 or (name.len > 1 and name.len <= 4 and name[0] >= 0x80)) {