mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Fix formatting of negative numbers in pnc apply patterns
This commit is contained in:
parent
2e4e4bb957
commit
586dc3486f
7 changed files with 70 additions and 3 deletions
|
@ -0,0 +1,2 @@
|
|||
(-8)() : C
|
||||
8
|
|
@ -0,0 +1,46 @@
|
|||
@0-10 SpaceAfter(
|
||||
Defs(
|
||||
Defs {
|
||||
tags: [
|
||||
EitherIndex(2147483648),
|
||||
],
|
||||
regions: [
|
||||
@0-8,
|
||||
],
|
||||
space_before: [
|
||||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
|
||||
],
|
||||
space_after: [
|
||||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
|
||||
],
|
||||
spaces: [],
|
||||
type_defs: [],
|
||||
value_defs: [
|
||||
Annotation(
|
||||
@1-6 PncApply(
|
||||
@1-3 NumLiteral(
|
||||
"-8",
|
||||
),
|
||||
[],
|
||||
),
|
||||
@7-8 Apply(
|
||||
"",
|
||||
"C",
|
||||
[],
|
||||
),
|
||||
),
|
||||
],
|
||||
},
|
||||
@9-10 SpaceBefore(
|
||||
Num(
|
||||
"8",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,2 @@
|
|||
(-8)():C
|
||||
8
|
|
@ -639,6 +639,7 @@ mod test_snapshots {
|
|||
pass/plus_if.expr,
|
||||
pass/plus_when.expr,
|
||||
pass/pnc_apply_comment_after_newline.expr,
|
||||
pass/pnc_apply_neg_pattern.expr,
|
||||
pass/pnc_parens_apply_etc.expr,
|
||||
pass/pos_inf_float.expr,
|
||||
pass/positive_float.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue