Skip to content

Commit fbac220

Browse files
committed
Fix: remove additional parens around fun args
1 parent 935758f commit fbac220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/parse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ class parser
14361436
}
14371437
else if (term.op->type() == lexeme::LeftParen)
14381438
{
1439-
term.expr_list = expression_list(term.op->position());
1439+
term.expr_list = expression_list(term.op->position(), peek(-2)->type() == lexeme::Identifier);
14401440
if (!term.expr_list) {
14411441
error("( is not followed by a valid expression list");
14421442
return {};

0 commit comments

Comments
 (0)