mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 20:58:15 +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")
|
error(p, body.pos, "the body of a 'do' must be on the same line as the 'for' token")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
allow_token(p, .Semicolon)
|
||||||
body = parse_body(p)
|
body = parse_body(p)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user