diff --git a/static/js/lang.js b/static/js/lang.js index d2189ef..5000e81 100644 --- a/static/js/lang.js +++ b/static/js/lang.js @@ -487,8 +487,11 @@ class Parser { } fnCall(fnNode) { this.tokens.expect(T.Of); - // TODO: support multiple arguments const args = [this.expr()]; + while (this.tokens.peek() === T.Comma) { + this.tokens.next(); // comma + args.push(this.expr()); + } return { type: N.FnCall, fn: fnNode,