Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

[BUG] Tagged null at end of flow sequence gives scanner error #396

Description

@Kyuuhachi

From what I can tell, [!tag] is supposed to be valid syntax. However, trying to parse it, we get

Error {
    kind: SCANNER,
    problem: "did not find expected whitespace or line break",
    problem_mark: Mark {
        line: 1,
        column: 6,
    },
    context: "while scanning a tag",
    context_mark: Mark {
        line: 1,
        column: 2,
    },
}

Adding a trailing space, newline, or comma makes it parse correctly:

[!tag,]

is parsed as

Sequence [
    TaggedValue {
        tag: !tag,
        value: Null,
    },
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions