Skip to content

Commit f90de7d

Browse files
committed
fix: fixed an error preventing proper parsing of weak variable definition
1 parent 1433bb4 commit f90de7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

argon/lang/parser2/parser2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ Node *Parser::ParseDecls(Context *context) {
396396

397397
this->Eat(true);
398398

399-
if (!this->MatchEat(TokenType::KW_VAR, true))
399+
if (!this->Match(TokenType::KW_VAR))
400400
throw ParserException(TKCUR_LOC, kStandardError[3]);
401401

402402
decl = this->ParseVarDecl(context, start, false, pub, true);

0 commit comments

Comments
 (0)