diff options
| author | gingerBill <bill@gingerbill.org> | 2022-05-21 13:02:03 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-05-21 13:02:03 +0100 |
| commit | e43eccbb912861ecc230229935f35ff98a5f2230 (patch) | |
| tree | 7d100c1aa12f62c400acd6f98e1d6b99df83b087 /src/parser.cpp | |
| parent | e48f41165c54913e07d1ab21bebb6a439524cf7c (diff) | |
| parent | b84561f2b8440d42808b0815f43d877d89e9ddde (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 1f4093e5f..ab947774b 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -4043,7 +4043,7 @@ Ast *parse_if_stmt(AstFile *f) { if (build_context.disallow_do) { syntax_error(body, "'do' has been disallowed"); } else if (!ast_on_same_line(cond, body)) { - syntax_error(body, "The body of a 'do' be on the same line as if condition"); + syntax_error(body, "The body of a 'do' must be on the same line as if condition"); } } else { body = parse_block_stmt(f, false); @@ -4065,7 +4065,7 @@ Ast *parse_if_stmt(AstFile *f) { if (build_context.disallow_do) { syntax_error(else_stmt, "'do' has been disallowed"); } else if (!ast_on_same_line(else_token, else_stmt)) { - syntax_error(else_stmt, "The body of a 'do' be on the same line as 'else'"); + syntax_error(else_stmt, "The body of a 'do' must be on the same line as 'else'"); } } break; default: @@ -4100,7 +4100,7 @@ Ast *parse_when_stmt(AstFile *f) { if (build_context.disallow_do) { syntax_error(body, "'do' has been disallowed"); } else if (!ast_on_same_line(cond, body)) { - syntax_error(body, "The body of a 'do' be on the same line as when statement"); + syntax_error(body, "The body of a 'do' must be on the same line as when statement"); } } else { body = parse_block_stmt(f, true); @@ -4122,7 +4122,7 @@ Ast *parse_when_stmt(AstFile *f) { if (build_context.disallow_do) { syntax_error(else_stmt, "'do' has been disallowed"); } else if (!ast_on_same_line(else_token, else_stmt)) { - syntax_error(else_stmt, "The body of a 'do' be on the same line as 'else'"); + syntax_error(else_stmt, "The body of a 'do' must be on the same line as 'else'"); } } break; default: @@ -4197,7 +4197,7 @@ Ast *parse_for_stmt(AstFile *f) { if (build_context.disallow_do) { syntax_error(body, "'do' has been disallowed"); } else if (!ast_on_same_line(token, body)) { - syntax_error(body, "The body of a 'do' be on the same line as the 'for' token"); + syntax_error(body, "The body of a 'do' must be on the same line as the 'for' token"); } } else { body = parse_block_stmt(f, false); @@ -4243,7 +4243,7 @@ Ast *parse_for_stmt(AstFile *f) { if (build_context.disallow_do) { syntax_error(body, "'do' has been disallowed"); } else if (!ast_on_same_line(token, body)) { - syntax_error(body, "The body of a 'do' be on the same line as the 'for' token"); + syntax_error(body, "The body of a 'do' must be on the same line as the 'for' token"); } } else { body = parse_block_stmt(f, false); @@ -4569,7 +4569,7 @@ Ast *parse_unrolled_for_loop(AstFile *f, Token unroll_token) { if (build_context.disallow_do) { syntax_error(body, "'do' has been disallowed"); } else if (!ast_on_same_line(for_token, body)) { - syntax_error(body, "The body of a 'do' be on the same line as the 'for' token"); + syntax_error(body, "The body of a 'do' must be on the same line as the 'for' token"); } } else { body = parse_block_stmt(f, false); |