summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jay2025-11-08 19:59:08 +1100
committerGravatar Jay2025-11-08 19:59:08 +1100
commit2f02c3b16c073d0bd3d9368a66ce272a574f75a3 (patch)
tree8b3f9062edde82724c73147abf42143a885640fc /src
parentEmbed data files in scripts rather than relying on filesystem access for easi... (diff)
downloadzg-2f02c3b16c073d0bd3d9368a66ce272a574f75a3.tar.gz
zg-2f02c3b16c073d0bd3d9368a66ce272a574f75a3.tar.xz
zg-2f02c3b16c073d0bd3d9368a66ce272a574f75a3.zip
Use takeDelimiterInclusive to support Zig 0.15.2
Diffstat (limited to 'src')
-rw-r--r--src/unicode_tests.zig3
1 files changed, 2 insertions, 1 deletions
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 {
449 449
450 pub fn next(iter: *IterRead) anyerror![]const u8 { 450 pub fn next(iter: *IterRead) anyerror![]const u8 {
451 iter.line += 1; 451 iter.line += 1;
452 const this_line = try iter.read.takeDelimiterExclusive('\n'); 452 const took = try iter.read.takeDelimiterInclusive('\n');
453 const this_line = std.mem.trimRight(u8, took, "\n");
453 if (this_line.len == 0 or this_line[0] == '@' or this_line[0] == '#') { 454 if (this_line.len == 0 or this_line[0] == '@' or this_line[0] == '#') {
454 // comment, next line 455 // comment, next line
455 return iter.next(); 456 return iter.next();