Skip to content

Commit

Permalink
parse parameter defaults without commas
Browse files Browse the repository at this point in the history
  • Loading branch information
y21 committed Dec 28, 2024
1 parent 1479cdb commit 5e1e6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/dash_parser/src/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ impl Parser<'_, '_> {

// Parse default value
let default = if self.eat(TokenType::Assignment, false).is_some() {
Some(self.parse_expression()?)
Some(self.parse_expression_no_comma()?)
} else {
None
};
Expand Down

0 comments on commit 5e1e6cc

Please sign in to comment.