summaryrefslogtreecommitdiff
path: root/codegen/ccc.zig
diff options
context:
space:
mode:
authorGravatar Jay2025-11-08 19:59:08 +1100
committerGravatar Jay2025-11-08 19:59:08 +1100
commit2f02c3b16c073d0bd3d9368a66ce272a574f75a3 (patch)
tree8b3f9062edde82724c73147abf42143a885640fc /codegen/ccc.zig
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 'codegen/ccc.zig')
-rw-r--r--codegen/ccc.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/codegen/ccc.zig b/codegen/ccc.zig
index 48d3a9d..4e470ae 100644
--- a/codegen/ccc.zig
+++ b/codegen/ccc.zig
@@ -31,7 +31,8 @@ pub fn main() anyerror!void {
31 31
32 // Process DerivedCombiningClass.txt 32 // Process DerivedCombiningClass.txt
33 var cc_reader = std.io.Reader.fixed(@embedFile("DerivedCombiningClass.txt")); 33 var cc_reader = std.io.Reader.fixed(@embedFile("DerivedCombiningClass.txt"));
34 while (cc_reader.takeDelimiterExclusive('\n')) |line| { 34 while (cc_reader.takeDelimiterInclusive('\n')) |took| {
35 const line = std.mem.trimRight(u8, took, "\n");
35 if (line.len == 0 or line[0] == '#') continue; 36 if (line.len == 0 or line[0] == '#') continue;
36 const no_comment = if (std.mem.indexOfScalar(u8, line, '#')) |octo| line[0..octo] else line; 37 const no_comment = if (std.mem.indexOfScalar(u8, line, '#')) |octo| line[0..octo] else line;
37 38