summaryrefslogtreecommitdiff
path: root/src/syntax.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:16 -0300
commitc0ed5f823a37fb1b9b2300f53b23263bfc97a108 (patch)
treec99677eaad7f76b515827ac5c562434902033a92 /src/syntax.zig
parente398c24ba19948727affdc6a29254ac69a6b7699 (diff)
downloadpardes-c0ed5f823a37fb1b9b2300f53b23263bfc97a108.tar.gz
pardes-c0ed5f823a37fb1b9b2300f53b23263bfc97a108.zip
edit: Enter, o and O give the new line helix's indent where the file's grammar has an indent query, its indent_for_newline over the file's tree (indent.zig: the reference's containment engine, every capture and predicate the vendored queries use, the hybrid heuristic), else acme's copy as before; and Enter between a pair puts the closer on a line of its own at that indent and the cursor on one a level in, as helix's insert_newline does, in plain text too
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/syntax.zig')
-rw-r--r--src/syntax.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syntax.zig b/src/syntax.zig
index 5fe557ae..0521966d 100644
--- a/src/syntax.zig
+++ b/src/syntax.zig
@@ -1279,6 +1279,7 @@ fn diffSynAt(styles: []const u8, text: []const u8, needle: []const u8, offset: u
test {
_ = diff;
+ _ = @import("indent.zig");
}
test "every vendored textobject and indent query compiles against its grammar" {