diff options
Diffstat (limited to 'codegen/gencat.zig')
| -rw-r--r-- | codegen/gencat.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/codegen/gencat.zig b/codegen/gencat.zig index 79fa072..9800f1d 100644 --- a/codegen/gencat.zig +++ b/codegen/gencat.zig | |||
| @@ -64,7 +64,8 @@ pub fn main() !void { | |||
| 64 | 64 | ||
| 65 | // Process DerivedGeneralCategory.txt | 65 | // Process DerivedGeneralCategory.txt |
| 66 | var in_reader = std.io.Reader.fixed(@embedFile("DerivedGeneralCategory.txt")); | 66 | var in_reader = std.io.Reader.fixed(@embedFile("DerivedGeneralCategory.txt")); |
| 67 | while (in_reader.takeDelimiterExclusive('\n')) |line| { | 67 | while (in_reader.takeDelimiterInclusive('\n')) |took| { |
| 68 | const line = std.mem.trimRight(u8, took, "\n"); | ||
| 68 | if (line.len == 0 or line[0] == '#') continue; | 69 | if (line.len == 0 or line[0] == '#') continue; |
| 69 | 70 | ||
| 70 | const no_comment = if (std.mem.indexOfScalar(u8, line, '#')) |octo| line[0..octo] else line; | 71 | const no_comment = if (std.mem.indexOfScalar(u8, line, '#')) |octo| line[0..octo] else line; |