summaryrefslogtreecommitdiff
path: root/codegen/props.zig
diff options
context:
space:
mode:
Diffstat (limited to 'codegen/props.zig')
-rw-r--r--codegen/props.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/codegen/props.zig b/codegen/props.zig
index ca42987..35c7dfb 100644
--- a/codegen/props.zig
+++ b/codegen/props.zig
@@ -32,7 +32,8 @@ pub fn main() anyerror!void {
32 32
33 // Process PropList.txt 33 // Process PropList.txt
34 var in_reader = std.io.Reader.fixed(@embedFile("PropList.txt")); 34 var in_reader = std.io.Reader.fixed(@embedFile("PropList.txt"));
35 while (in_reader.takeDelimiterExclusive('\n')) |line| { 35 while (in_reader.takeDelimiterInclusive('\n')) |took| {
36 const line = std.mem.trimRight(u8, took, "\n");
36 if (line.len == 0 or line[0] == '#') continue; 37 if (line.len == 0 or line[0] == '#') continue;
37 const no_comment = if (mem.indexOfScalar(u8, line, '#')) |octo| line[0..octo] else line; 38 const no_comment = if (mem.indexOfScalar(u8, line, '#')) |octo| line[0..octo] else line;
38 39