Skip to content

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

Description

@phreed

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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