From 5d1d3bd0a479c0d72c85ebbcb96eff0c2e4ec7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Mon, 2 Jan 2023 20:06:36 +0100 Subject: [PATCH] Parser - Fixed function call parsing --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index c2c8652..e626544 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -638,7 +638,7 @@ impl Parser { )); } arguments.push(self.parse_expression()?); - if self.expect(&[TokenType::Comma]).is_some() { + if self.expect(&[TokenType::Comma]).is_none() { break; } }