diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-12-25 20:24:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-25 20:24:30 +0100 |
| commit | 6f370fdbf2811a82b09a8fe9afcd805cdf3477eb (patch) | |
| tree | a656ba79c9bf1df60903ab7498b10636a8be1201 /core | |
| parent | 6889cb6fe2b8a17e25ff2906daac8d4b99dfb948 (diff) | |
| parent | a60667e900f3e7f3b6253019961a17b65b76e479 (diff) | |
Merge pull request #1394 from Tetralux/parse-allman-for
core:odin/parser: Fix parsing of Allman style braces in for loops
Diffstat (limited to 'core')
| -rw-r--r-- | core/odin/parser/parser.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/odin/parser/parser.odin b/core/odin/parser/parser.odin index aade2051a..e8c2c848d 100644 --- a/core/odin/parser/parser.odin +++ b/core/odin/parser/parser.odin @@ -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) } |