Skip to content

Commit

Permalink
fix parsing multiple arg tokens
Browse files Browse the repository at this point in the history
The `Comma` token needs to be popped in order to move the logic
forward and let the loop work on the next token.
  • Loading branch information
FrankReh committed Apr 25, 2024
1 parent 744ed57 commit 9900b0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/command/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ impl<'a> FunctionCall<'a> {
if input.front().map(|t| t.token()) != Some(TokenKind::Comma) {
break;
}
input.pop_front();
}
expect_token(input, |t| t == TokenKind::ClosedParen)?;
Ok(Some(FunctionCall {
Expand Down

0 comments on commit 9900b0d

Please sign in to comment.