Fix indent calls in optional fields

This commit is contained in:
Joshua Warner 2024-12-01 17:44:45 -08:00
parent 84b3969648
commit cfec120b13
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1,17 @@
Record(
[
@1-5 OptionalValue(
@1-2 "i",
[],
@4-5 SpaceBefore(
Var {
module_name: "",
ident: "p",
},
[
Newline,
],
),
),
],
)

View file

@ -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,