diff options
| author | Karl Zylinski <karl@zylinski.se> | 2024-09-14 14:36:33 +0200 |
|---|---|---|
| committer | Karl Zylinski <karl@zylinski.se> | 2024-09-14 14:36:33 +0200 |
| commit | c24e18bf1063cd86c200d51d585059f8aa099615 (patch) | |
| tree | cb399b60bace17934d2c0bd1fafb2cb0ece29740 /src/parser.cpp | |
| parent | 8b84b9a4a26d7f2fb07a7e5dcd49b678d1c9be91 (diff) | |
Fix incorrect syntax error in parse_file
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 523dad8b8..22d92e87b 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -6432,7 +6432,7 @@ gb_internal bool parse_file(Parser *p, AstFile *f) { // There was an OK package declaration. But there some invalid token was hit before the package declaration. if (first_invalid_token_set) { - syntax_error(first_invalid_token, "There can only be lines starting with '#+' or '//' before package declaration"); + syntax_error(first_invalid_token, "Expected only comments or lines starting with '#+' before the package declaration"); return false; } |