Fix multiline pattern in body, which may only apply to multiline strings

This commit is contained in:
Joshua Warner 2024-12-01 19:35:26 -08:00
parent ab4c96bc81
commit 2098ccd137
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
6 changed files with 81 additions and 3 deletions

View file

@ -0,0 +1,7 @@
(H
"""
""")
= f
"""
"""
f!

View file

@ -0,0 +1,62 @@
SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-15,
],
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-7 Apply(
@0-1 Tag(
"H",
),
[
@1-7 StrLiteral(
Block(
[],
),
),
],
),
@8-15 Apply(
@8-9 Var {
module_name: "",
ident: "f",
},
[
@9-15 Str(
Block(
[],
),
),
],
Space,
),
),
],
},
@16-18 SpaceBefore(
Var {
module_name: "",
ident: "f!",
},
[
Newline,
],
),
),
[
Newline,
],
)

View file

@ -0,0 +1,2 @@
H""""""=f""""""
f!