Fix anonymous procedures

This commit is contained in:
gingerBill
2018-07-01 16:21:32 +01:00
parent 3a16f1e854
commit 9bef5ec01a
4 changed files with 30 additions and 9 deletions

View File

@@ -4292,6 +4292,9 @@ bool parse_file(Parser *p, AstFile *f) {
CommentGroup *docs = f->lead_comment;
f->package_token = expect_token(f, Token_package);
if (f->error_count > 0) {
return false;
}
Token package_name = expect_token_after(f, Token_Ident, "package");
if (package_name.kind == Token_Ident) {
if (package_name.string == "_") {