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

Multiple special characters in a single <...> does not work as documented #305

Open
phreed opened this issue Oct 5, 2022 · 1 comment
Open
Labels

Comments

@phreed
Copy link

phreed commented Oct 5, 2022

In the documentation https://github.com/antlr/stringtemplate4/blob/master/doc/cheatsheet.md is the following:

<\ >, <\n>, <\t> special character(s): space, newline, tab. Can have multiple in single <...> expression, e.g. <\t\t>.

I tried to use '<\n\t' and ST4 produced the error:
expecting '>', found '\'
Replacement with '<\n><\t>' works as expected.

@parrt
Copy link
Member

parrt commented Oct 9, 2022

That's weird. Thanks for letting me know.

@parrt parrt added the type:bug label Oct 9, 2022
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

2 participants