Skip to content

Commit

Permalink
fix(parser)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopodl committed Jun 27, 2024
1 parent 68764fc commit 3455c95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions argon/lang/parser2/parser2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,8 @@ Node *Parser::ParseSyncBlock(Context *context) {
this->Eat(true);

expr = (ArObject *) this->ParseExpression(context, PeekPrecedence(TokenType::ASTERISK));
if (!expr)
throw ParserException(this->tkcur_.loc, kStandardError[0]);

if (((Node *) expr.Get())->node_type == NodeType::LITERAL)
throw ParserException(((Node *) expr.Get())->loc, kStandardError[14]);
Expand Down

0 comments on commit 3455c95

Please sign in to comment.