mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Allow incorrect indents for closing braces, to be fixed in the formatter
This commit is contained in:
parent
2682193b76
commit
0e3b9e5624
1 changed files with 5 additions and 1 deletions
|
@ -1214,7 +1214,11 @@ macro_rules! collection_trailing_sep_e {
|
|||
$indent_problem
|
||||
)
|
||||
),
|
||||
$crate::blankspace::space0_e($min_indent, $indent_problem)
|
||||
$crate::blankspace::space0_e(
|
||||
// we use min_indent=0 because we want to parse incorrectly indented closing braces
|
||||
// and later fix these up in the formatter.
|
||||
0 /* min_indent */,
|
||||
$indent_problem)
|
||||
).parse(arena, state)?;
|
||||
|
||||
let (_,_, state) =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue