mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-13 13:53:43 +00:00
Merge pull request #6794 from peperronii/patch-1
Fix error message: 'do' not on the same line as 'for'
This commit is contained in:
@@ -898,7 +898,7 @@ parse_for_stmt :: proc(p: ^Parser) -> ^ast.Stmt {
|
||||
if allow_token(p, .Do) {
|
||||
body = convert_stmt_to_body(p, parse_stmt(p))
|
||||
if tok.pos.line != body.pos.line {
|
||||
error(p, body.pos, "the body of a 'do' must be on the same line as 'else'")
|
||||
error(p, body.pos, "the body of a 'do' must be on the same line as 'for'")
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user