From 2f02c3b16c073d0bd3d9368a66ce272a574f75a3 Mon Sep 17 00:00:00 2001 From: Jay Date: Sat, 8 Nov 2025 19:59:08 +1100 Subject: Use takeDelimiterInclusive to support Zig 0.15.2 --- src/unicode_tests.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/unicode_tests.zig') diff --git a/src/unicode_tests.zig b/src/unicode_tests.zig index 875c5f0..e2a5a96 100644 --- a/src/unicode_tests.zig +++ b/src/unicode_tests.zig @@ -449,7 +449,8 @@ const IterRead = struct { pub fn next(iter: *IterRead) anyerror![]const u8 { iter.line += 1; - const this_line = try iter.read.takeDelimiterExclusive('\n'); + const took = try iter.read.takeDelimiterInclusive('\n'); + const this_line = std.mem.trimRight(u8, took, "\n"); if (this_line.len == 0 or this_line[0] == '@' or this_line[0] == '#') { // comment, next line return iter.next(); -- cgit v1.2.3