Merge pull request #1394 from Tetralux/parse-allman-for

core:odin/parser: Fix parsing of Allman style braces in for loops
This commit is contained in:
Jeroen van Rijn
2021-12-25 20:24:30 +01:00
committed by GitHub

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)
}