mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Fix crash with doubly-nested parens in patterns
This commit is contained in:
parent
941c6c4fe3
commit
8f0566a55f
7 changed files with 82 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
\L z -> 42
|
|
@ -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,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,3 @@
|
|||
\L((z
|
||||
)
|
||||
)->42
|
|
@ -353,6 +353,7 @@ mod test_snapshots {
|
|||
pass/closure_in_apply_in_binop.expr,
|
||||
pass/closure_in_binop_with_spaces.expr,
|
||||
pass/closure_newline_empty_record_newline.expr,
|
||||
pass/closure_parens_double_newlines.expr,
|
||||
pass/closure_pat_reccord_comment.expr,
|
||||
pass/closure_with_underscores.expr,
|
||||
pass/comma_prefixed_indented_record.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue