mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Relax argument indentation requirements in closures
This commit is contained in:
parent
ede015517a
commit
51f2cdccf7
7 changed files with 70 additions and 21 deletions
|
@ -1 +1 @@
|
|||
Expr(Closure(IndentArrow(@10), @4), @0)
|
||||
Expr(Closure(Arrow(@11), @4), @0)
|
|
@ -0,0 +1,4 @@
|
|||
{ #
|
||||
h & } | #
|
||||
i
|
||||
| 0
|
|
@ -0,0 +1,41 @@
|
|||
@0-14 SpaceAfter(
|
||||
Apply(
|
||||
@0-6 RecordUpdate {
|
||||
update: @3-4 SpaceBefore(
|
||||
Var {
|
||||
module_name: "",
|
||||
ident: "h",
|
||||
},
|
||||
[
|
||||
LineComment(
|
||||
"",
|
||||
),
|
||||
],
|
||||
),
|
||||
fields: [],
|
||||
},
|
||||
[
|
||||
@6-14 Closure(
|
||||
[
|
||||
@10-11 SpaceBefore(
|
||||
Identifier {
|
||||
ident: "i",
|
||||
},
|
||||
[
|
||||
LineComment(
|
||||
"",
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
@13-14 Num(
|
||||
"0",
|
||||
),
|
||||
),
|
||||
],
|
||||
Space,
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,3 @@
|
|||
{#
|
||||
h&}\#
|
||||
i->0
|
|
@ -672,6 +672,7 @@ mod test_snapshots {
|
|||
pass/record_literal_field_bang.expr,
|
||||
pass/record_type_with_function.expr,
|
||||
pass/record_update.expr,
|
||||
pass/record_update_apply_closure_comments.expr,
|
||||
pass/record_update_comment_before_ampersand.expr,
|
||||
pass/record_updater_closure_weirdness.expr,
|
||||
pass/record_updater_literal_apply.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue