summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 01:42:25 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commitb3d32656413734952bc918c2d4cfd12fede6c214 (patch)
tree04386fab10b9ed803ec31251cb733cc32852390a /build.zig
parent4a33b8d2bd409d4a06205f28e0eb1b4cdaf49889 (diff)
parente6e81a6bc544c5ab5a47c21d85e6868020031abb (diff)
downloadpardes-b3d32656413734952bc918c2d4cfd12fede6c214.tar.gz
pardes-b3d32656413734952bc918c2d4cfd12fede6c214.zip
integration: the diff viewer on general mechanisms, and the plumber's first phase, together
A merge of diff-lib and plumber-1; the changelog keeps both sides' entries; core-test 984/984 on tui, the process suite's tree cases pass (fs-help.txt holds both the rows and the plumb lines in its 45). Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index d99f3985..acd402b6 100644
--- a/build.zig
+++ b/build.zig
@@ -400,7 +400,11 @@ pub fn build(b: *std.Build) void {
if (std.mem.count(u8, backed, end_anchor) != 1) @panic("mvzr's parser changed: redo its `$` before `|` in build.zig");
var patched = std.mem.replaceOwned(u8, b.allocator, backed, end_anchor, end_before_alt) catch @panic("OOM");
// Zig 0.17 removed `**`; mvzr still has it (its PR #16 replaces it upstream).
+ // A class's range ending at `\xff` counted to 256 in a u8, an
+ // overflow (a panic in a safe build, a runaway loop in a fast one):
+ // `[\x80-\xff]` in any search took the editor down.
for ([_][3][]const u8{
+ .{ "for (c1..c2 + 1) |c_range|", "for (c1..@as(usize, c2) + 1) |c_range|", "1" },
.{ "[1]RegOp{.{ .unused = {} }} ** ops", "@splat(.{ .unused = {} })", "1" },
.{ "[1]CharSet{.{ .low = 0, .hi = 0 }} ** char_sets", "@splat(.{ .low = 0, .hi = 0 })", "1" },
.{ "\"a\" ** 2048", "&@as([2048]u8, @splat('a'))", "2" },