Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jurgenvinju opened this issue Mar 30, 2023 · 0 comments
Open

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

jurgenvinju opened this issue Mar 30, 2023 · 0 comments
Labels

Comments

@jurgenvinju
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant