Skip to content

evaluator: support line continuation with backslash-newline in multiline string literals #2317

@rogpeppe

Description

@rogpeppe

Swift multiline strings support the use of a backslash at the end of a line to join that line to the following line.

CUE should probably support this too.

For example:

x: """
    abc\
    def
    """

would be equivalent to:

x: "abcdef"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions