Skip to content
This repository has been 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

Open
Kyuuhachi opened this issue Nov 15, 2023 · 0 comments
Open

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

Kyuuhachi opened this issue Nov 15, 2023 · 0 comments

Comments

@Kyuuhachi
Copy link

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,
    },
]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant