Relax indentation parsing inside parens, lists, and records

This commit is contained in:
Joshua Warner 2024-12-15 08:36:24 -08:00
parent 1b4f5bbb52
commit 96c5dcb651
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
7 changed files with 146 additions and 29 deletions

View file

@ -548,7 +548,8 @@ fn record_pattern_field<'a>() -> impl Parser<'a, Loc<Pattern<'a>>, PRecord<'a>>
))
}
Some(Second(_)) => {
let val_parser = specialize_err_ref(PRecord::Expr, crate::expr::loc_expr(false));
let val_parser =
specialize_err_ref(PRecord::Expr, crate::expr::loc_expr(false, false));
let (_, loc_val, state) =
spaces_before(val_parser).parse(arena, state, min_indent)?;