mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix incorrect syntax error in parse_file
This commit is contained in:
+1
-1
@@ -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.
|
// There was an OK package declaration. But there some invalid token was hit before the package declaration.
|
||||||
if (first_invalid_token_set) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user