mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Also handle tuple accessors for multiline string checking
This commit is contained in:
parent
d3c400b5e0
commit
316ec39af7
6 changed files with 59 additions and 1 deletions
|
@ -0,0 +1,4 @@
|
|||
i =
|
||||
"""
|
||||
"""().1
|
||||
p
|
|
@ -0,0 +1,50 @@
|
|||
@0-14 SpaceAfter(
|
||||
Defs(
|
||||
Defs {
|
||||
tags: [
|
||||
EitherIndex(2147483648),
|
||||
],
|
||||
regions: [
|
||||
@0-12,
|
||||
],
|
||||
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: [
|
||||
Body(
|
||||
@0-1 Identifier {
|
||||
ident: "i",
|
||||
},
|
||||
@2-12 TupleAccess(
|
||||
PncApply(
|
||||
@2-8 Str(
|
||||
Block(
|
||||
[],
|
||||
),
|
||||
),
|
||||
[],
|
||||
),
|
||||
"1",
|
||||
),
|
||||
),
|
||||
],
|
||||
},
|
||||
@13-14 SpaceBefore(
|
||||
Var {
|
||||
module_name: "",
|
||||
ident: "p",
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,2 @@
|
|||
i=""""""().1
|
||||
p
|
|
@ -1,3 +1,3 @@
|
|||
fallible!(args)
|
||||
? \my_err ->
|
||||
? |my_err|
|
||||
my_err * 2
|
|
@ -541,6 +541,7 @@ mod test_snapshots {
|
|||
pass/multiline_str_interpolation_records.expr,
|
||||
pass/multiline_str_opt_field.expr,
|
||||
pass/multiline_str_pnc_apply_in_assignment_newline.expr,
|
||||
pass/multiline_str_pnc_apply_in_assignment_record_access_newline.expr,
|
||||
pass/multiline_string.expr,
|
||||
pass/multiline_string_in_apply.expr,
|
||||
pass/multiline_tuple_with_comments.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue