odin/tokenizer: Reset insert_semicolon to false in tokenizer.init to fix bug when tokenizing multiple files.

This commit is contained in:
Rikard Petré
2024-01-20 16:09:41 +01:00
parent 99825a28d7
commit 239d4e1076

View File

@@ -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