| ... | ... | @@ -345,7 +345,7 @@ pub const Tokenizer = struct { |
| 345 | 345 | |
| 346 | 346 | /// For debugging purposes |
| 347 | 347 | pub fn dump(self: *Tokenizer, token: *const Token) void { |
| 348 | | std.debug.print("{s} \"{s}\"\n", .{ @tagName(token.tag), self.buffer[token.start..token.end] }); |
| 348 | std.debug.print("{s} \"{s}\"\n", .{ @tagName(token.tag), self.buffer[token.loc.start..token.loc.end] }); |
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | pub fn init(buffer: [:0]const u8) Tokenizer { |