summaryrefslogtreecommitdiff
path: root/core/Query.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Query.zig')
-rw-r--r--core/Query.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Query.zig b/core/Query.zig
index ebb44155..663095b0 100644
--- a/core/Query.zig
+++ b/core/Query.zig
@@ -2390,6 +2390,7 @@ test "Grep: lines of the files under the owner's directory, under their file; Al
}
test "* seeds line 1 and keeps the keyboard; SPC b b picks a pane, SPC s s a declaration" {
+ if (comptime !syntax.minimal_grammars) return error.SkipZigTest;
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 120, .rows = 48 });
defer p.deinit();
const pane = try p.setTestFile("const alpha = 1;\nfn beta() void {\n _ = alpha;\n}\nfn gamma() void {}\n");
@@ -2624,6 +2625,7 @@ test "a query row's place is its text: the match tinted after it, B3 on it opens
}
test "the +Preview: the query's hits in its file are its places, the row's one current and selected, coloured as the file is" {
+ if (comptime !syntax.minimal_grammars) return error.SkipZigTest;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
const text = "const needle = 1;\nconst hay = 2;\nfn f() void {\n _ = needle;\n}\npub const needle_too = needle;\n";