diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 16:12:55 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 16:38:40 -0300 |
| commit | 06f6c72583faf8256190a0ae195a8085e7cd7f32 (patch) | |
| tree | 4ceb3509121b23287f8f6e12b00726cb7535fca9 /core/File.zig | |
| parent | a2c5ad9cbd458693599831867b509a12b90ef99d (diff) | |
| download | pardes-06f6c72583faf8256190a0ae195a8085e7cd7f32.tar.gz pardes-06f6c72583faf8256190a0ae195a8085e7cd7f32.zip | |
build: syntax-test deleted, and a test whose grammar is not built skips: the step rooted the syntax module at core/syntax.zig, where dev/Host.zig's `pardes.Surface` does not resolve (it no longer compiled), and every test it ran (syntax.zig's, named "syntax ...") already runs in core-test (core's test program 904 tests with and without a reference added: the same), so the step and its line in docs/typ/building.typ go; under -Dgrammars=none core-test failed to compile (a handed-grammar test names zig's queries) and then 16 tests failed or crashed, under minimal one (a JSON file's paint): each now returns error.SkipZigTest when the set it needs is not built (syntax.zig's own `if (!full_grammars) return;` passed silently, now skips too; minimal_grammars and full_grammars made pub for Query, Stream and File's tests); core-test: full 874/1031 (157 skipped), minimal 861/1031 (170 skipped), none 835/1031 (196 skipped), none failing; `zig build syntax` (the snapshots) builds and runs
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/File.zig')
| -rw-r--r-- | core/File.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/File.zig b/core/File.zig index ceb6d03b..8a8c05de 100644 --- a/core/File.zig +++ b/core/File.zig @@ -2312,6 +2312,7 @@ test "a pager's text is a diff when it holds a diff header or a unified hunk" { } test "a long line is painted only around the caret" { + if (comptime !syntax.full_grammars) return error.SkipZigTest; // JSON's const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 24 }); defer p.deinit(); const line = try std.testing.allocator.alloc(u8, 600 << 10); |
