Fix function call expressions

This commit is contained in:
Sofia 2026-03-15 15:19:01 +02:00
parent 46de03858a
commit 219d4b4f7e
2 changed files with 2 additions and 3 deletions

View File

@ -4,5 +4,4 @@ function add(x)
end
end
local d = add(5)
global c = print(d(7))
global c = print(add(5)(7))

View File

@ -344,7 +344,7 @@ impl Parse for PrimaryExpression {
Expression::ValueRef(stream.parse()?)
};
if let Some(Token::Symbol('(')) = stream.peek() {
while let Some(Token::Symbol('(')) = stream.peek() {
stream.next();
let expression_list = stream.parse::<Node<ExpressionList>>()?;
stream.expect(Token::Symbol(')'))?;