-
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relax argument indentation requirements in closures
- Loading branch information
1 parent
dcb0819
commit 9c34030
Showing
7 changed files
with
62 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ler/test_syntax/tests/snapshots/fail/unfinished_closure_pattern_in_parens.expr.result-ast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Expr(Closure(IndentArrow(@10), @4), @0) | ||
Expr(Closure(Arrow(@11), @4), @0) |
4 changes: 4 additions & 0 deletions
4
.../test_syntax/tests/snapshots/pass/record_update_apply_closure_comments.expr.formatted.roc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ # | ||
h & } \ # | ||
i | ||
-> 0 |
41 changes: 41 additions & 0 deletions
41
...ler/test_syntax/tests/snapshots/pass/record_update_apply_closure_comments.expr.result-ast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, | ||
], | ||
) |
3 changes: 3 additions & 0 deletions
3
...s/compiler/test_syntax/tests/snapshots/pass/record_update_apply_closure_comments.expr.roc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{# | ||
h&}\# | ||
i->0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters