瀏覽代碼

Add `or_break` and `or_continue` to the list of tokens that have an automatic semicolon added at the end of the line

Fabian Sperber 2 年之前
父節點
當前提交
bce66e3b42
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/odin/tokenizer/tokenizer.odin

+ 1 - 1
core/odin/tokenizer/tokenizer.odin

@@ -724,7 +724,7 @@ scan :: proc(t: ^Tokenizer) -> Token {
 		case .Ident, .Context, .Typeid, .Break, .Continue, .Fallthrough, .Return,
 		     .Integer, .Float, .Imag, .Rune, .String, .Undef,
 		     .Question, .Pointer, .Close_Paren, .Close_Bracket, .Close_Brace,
-		     .Increment, .Decrement, .Or_Return:
+		     .Increment, .Decrement, .Or_Return, .Or_Break, .Or_Continue:
 			/*fallthrough*/
 			t.insert_semicolon = true
 		case: