diff options
| author | Rikard Petré <rikkypikki@hotmail.com> | 2024-01-20 16:09:41 +0100 |
|---|---|---|
| committer | Rikard Petré <rikkypikki@hotmail.com> | 2024-01-20 16:09:41 +0100 |
| commit | 239d4e10762a12e96280bd91003acbf2170cadf2 (patch) | |
| tree | d2e24befee55ce7b40377a5b98d1665cef65b657 | |
| parent | 99825a28d7357b7e884ce0387f7e5fabd3180148 (diff) | |
odin/tokenizer: Reset insert_semicolon to false in tokenizer.init to fix bug when tokenizing multiple files.
| -rw-r--r-- | core/odin/tokenizer/tokenizer.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/odin/tokenizer/tokenizer.odin b/core/odin/tokenizer/tokenizer.odin index 41de3ac8b..62170aa10 100644 --- a/core/odin/tokenizer/tokenizer.odin +++ b/core/odin/tokenizer/tokenizer.odin @@ -39,6 +39,7 @@ init :: proc(t: ^Tokenizer, src: string, path: string, err: Error_Handler = defa t.read_offset = 0 t.line_offset = 0 t.line_count = len(src) > 0 ? 1 : 0 + t.insert_semicolon = false t.error_count = 0 t.path = path |