Skip to content

keyword fields with dashes not escaped by standard text writer #1786

@jurgenvinju

Description

@jurgenvinju

Describe the bug

rascal>data X = \hello-bye();
ok
rascal>\hello-bye()
X: \hello-bye()
rascal>data X(int \what-if=0);
ok
rascal>\hello-bye(\what-if=1)
X: \hello-bye(what-if=1)

Here we see \hello-bye is escaped as it should be, but what-if is not escaped. Copy-pasting this example print leads to a parse error immediately because of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions