mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add or_break and or_continue to the list of tokens that have an automatic semicolon added at the end of the line
This commit is contained in:
@@ -724,7 +724,7 @@ scan :: proc(t: ^Tokenizer) -> Token {
|
|||||||
case .Ident, .Context, .Typeid, .Break, .Continue, .Fallthrough, .Return,
|
case .Ident, .Context, .Typeid, .Break, .Continue, .Fallthrough, .Return,
|
||||||
.Integer, .Float, .Imag, .Rune, .String, .Undef,
|
.Integer, .Float, .Imag, .Rune, .String, .Undef,
|
||||||
.Question, .Pointer, .Close_Paren, .Close_Bracket, .Close_Brace,
|
.Question, .Pointer, .Close_Paren, .Close_Bracket, .Close_Brace,
|
||||||
.Increment, .Decrement, .Or_Return:
|
.Increment, .Decrement, .Or_Return, .Or_Break, .Or_Continue:
|
||||||
/*fallthrough*/
|
/*fallthrough*/
|
||||||
t.insert_semicolon = true
|
t.insert_semicolon = true
|
||||||
case:
|
case:
|
||||||
|
|||||||
Reference in New Issue
Block a user