mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 21:40:58 +00:00
Fix indent calls in optional fields
This commit is contained in:
parent
84b3969648
commit
cfec120b13
5 changed files with 25 additions and 1 deletions
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
i? p,
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
Record(
|
||||
[
|
||||
@1-5 OptionalValue(
|
||||
@1-2 "i",
|
||||
[],
|
||||
@4-5 SpaceBefore(
|
||||
Var {
|
||||
module_name: "",
|
||||
ident: "p",
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
{i?
|
||||
p}
|
||||
|
|
@ -479,6 +479,7 @@ mod test_snapshots {
|
|||
pass/nested_list_comment_in_closure_arg.expr,
|
||||
pass/newline_after_equals.expr, // Regression test for https://github.com/roc-lang/roc/issues/51
|
||||
pass/newline_after_mul.expr,
|
||||
pass/newline_after_opt_field.expr,
|
||||
pass/newline_after_paren.expr,
|
||||
pass/newline_after_sub.expr,
|
||||
pass/newline_and_spaces_before_less_than.expr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue