Fix function call expressions
This commit is contained in:
parent
46de03858a
commit
219d4b4f7e
@ -4,5 +4,4 @@ function add(x)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local d = add(5)
|
global c = print(add(5)(7))
|
||||||
global c = print(d(7))
|
|
||||||
@ -344,7 +344,7 @@ impl Parse for PrimaryExpression {
|
|||||||
Expression::ValueRef(stream.parse()?)
|
Expression::ValueRef(stream.parse()?)
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Some(Token::Symbol('(')) = stream.peek() {
|
while let Some(Token::Symbol('(')) = stream.peek() {
|
||||||
stream.next();
|
stream.next();
|
||||||
let expression_list = stream.parse::<Node<ExpressionList>>()?;
|
let expression_list = stream.parse::<Node<ExpressionList>>()?;
|
||||||
stream.expect(Token::Symbol(')'))?;
|
stream.expect(Token::Symbol(')'))?;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user