mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 05:08:14 +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.read_offset = 0
|
||||||
t.line_offset = 0
|
t.line_offset = 0
|
||||||
t.line_count = len(src) > 0 ? 1 : 0
|
t.line_count = len(src) > 0 ? 1 : 0
|
||||||
|
t.insert_semicolon = false
|
||||||
t.error_count = 0
|
t.error_count = 0
|
||||||
t.path = path
|
t.path = path
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user