mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 18:02:02 +00:00
odin/tokenizer: Reset insert_semicolon to false in tokenizer.init to fix bug when tokenizing multiple files.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user