diff options
| author | Cedric Hutchings <ced@misguided.enterprises> | 2022-05-21 01:50:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-21 01:50:59 -0400 |
| commit | 5c647e2f613b5402dc7bc016e4e454e2ac15afb3 (patch) | |
| tree | dc2e5d386a88175cb088dd433e73469ccee49e7a /src | |
| parent | 6e7179d8f3b1bb8394093b55a1af459013048fca (diff) | |
Fix typo.
Diffstat (limited to 'src')
| -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); |