Skip to content

Commit

Permalink
fix parsing of call expression
Browse files Browse the repository at this point in the history
  • Loading branch information
thi8v committed Feb 27, 2024
1 parent fa7b40e commit c34928d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stage1/zom_parser/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ pub fn parse_call_expr(parser: &mut Parser, lhs: &Expression) -> ParsingResult<E

let mut args = Vec::new();
loop {
expect_token!(parser => [T::Comma, (); T::CloseParen, break], Comma, parsed_tokens);
expect_token!(parser => [T::Comma, if args.is_empty() { continue };T::CloseParen, break] else {}, parsed_tokens);
args.push(parse_try!(parser => Expression, parsed_tokens));
}

Expand Down

0 comments on commit c34928d

Please sign in to comment.