mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 04:50:29 +00:00
Merge pull request #2856 from fabiansperber/fix-odin-parser-or_branch
core/odin Add `or_break` and `or_continue` semicolon handling
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user