-
-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash with doubly-nested parens in patterns
- Loading branch information
1 parent
941c6c4
commit 8f0566a
Showing
7 changed files
with
82 additions
and
1 deletion.
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
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
1 change: 1 addition & 0 deletions
1
...mpiler/test_syntax/tests/snapshots/pass/closure_parens_double_newlines.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 @@ | ||
\L z -> 42 |
32 changes: 32 additions & 0 deletions
32
.../compiler/test_syntax/tests/snapshots/pass/closure_parens_double_newlines.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,32 @@ | ||
@0-13 SpaceAfter( | ||
Closure( | ||
[ | ||
@1-5 Apply( | ||
@1-2 Tag( | ||
"L", | ||
), | ||
[ | ||
@4-5 SpaceAfter( | ||
SpaceAfter( | ||
Identifier { | ||
ident: "z", | ||
}, | ||
[ | ||
Newline, | ||
], | ||
), | ||
[ | ||
Newline, | ||
], | ||
), | ||
], | ||
), | ||
], | ||
@11-13 Num( | ||
"42", | ||
), | ||
), | ||
[ | ||
Newline, | ||
], | ||
) |
3 changes: 3 additions & 0 deletions
3
crates/compiler/test_syntax/tests/snapshots/pass/closure_parens_double_newlines.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 @@ | ||
\L((z | ||
) | ||
)->42 |
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