Skip to content

# fmt: skip doesn't work with multiline strings #4513

@MeGaGiGaGon

Description

@MeGaGiGaGon

I found this while messing around with #4511

playground link

(
# fmt: skip
"""
"""
)

gives
Cannot parse: 2:0: EOF in multi-line string

playground link

(
# fmt: skip
"\
"
)

gives
Cannot parse: 2:0: "


This is not fixed by #4380


This is fixed by #3978, though that PR appears to be stalled.
With #3978 applied:

(
# fmt: skip
"""
"""
)

gives

(
    # fmt: skip
    """
"""
)
(
# fmt: skip
"\
"
)

gives

(
    # fmt: skip
    ""
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    F: stringsRelated to our handling of stringsT: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions