mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Relax indentation parsing inside parens, lists, and records
This commit is contained in:
parent
1b4f5bbb52
commit
96c5dcb651
7 changed files with 146 additions and 29 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue