mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Fix accidental NoProgress return in if, to avoid exponential parsing issue
This commit is contained in:
parent
37e7caa1aa
commit
9ff1b630a8
4 changed files with 11 additions and 1 deletions
|
@ -2836,7 +2836,8 @@ fn if_expr_help<'a>(options: ExprParseOptions) -> impl Parser<'a, Expr<'a>, EIf<
|
|||
loc_first_space,
|
||||
allow_defs,
|
||||
false,
|
||||
)?;
|
||||
)
|
||||
.map_err(|(_, err)| (MadeProgress, err))?;
|
||||
|
||||
let expr = Expr::If {
|
||||
if_thens: branches.into_bump_slice(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue