Browse Source

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

Rikard Petré 1 year ago
parent
commit
239d4e1076
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/odin/tokenizer/tokenizer.odin

+ 1 - 0
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