about summary refs log tree commit diff
path: root/src/main.zig
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-12 13:33:07 +0100
committerBaitinq <[email protected]>2025-01-12 13:33:24 +0100
commit4b510bf484c9f0f82a20c8f8d3ecd59ea92aee80 (patch)
tree4a8847f5bbe77b6e8a9cb673e3794231f0271d47 /src/main.zig
parentMisc: Improve error messages and add todos (diff)
downloadpry-lang-4b510bf484c9f0f82a20c8f8d3ecd59ea92aee80.tar.gz
pry-lang-4b510bf484c9f0f82a20c8f8d3ecd59ea92aee80.tar.bz2
pry-lang-4b510bf484c9f0f82a20c8f8d3ecd59ea92aee80.zip
Tokenizer: Fix tokenizer invalid strings
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index e95bd48..bc88aeb 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -50,7 +50,7 @@ fn process_buf(buf: []u8, allocator: std.mem.Allocator, arena: *std.heap.ArenaAl
     defer token_list.deinit();
 
     var source_tokenizer = try tokenizer.Tokenizer.init(buf);
-    while (source_tokenizer.next()) |token| {
+    while (try source_tokenizer.next()) |token| {
         try token_list.append(token);
     }