core:odin/parser: Fix parsing of Allman style braces in for loops

This commit is contained in:
Tetralux
2021-12-25 19:17:34 +00:00
parent 84d774c7b4
commit a60667e900
+1
View File
@@ -888,6 +888,7 @@ parse_for_stmt :: proc(p: ^Parser) -> ^ast.Stmt {
error(p, body.pos, "the body of a 'do' must be on the same line as the 'for' token")
}
} else {
allow_token(p, .Semicolon)
body = parse_body(p)
}