mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 18:02:02 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user