antlr / antlr/stringtemplate4

The "\>" delimeter is not rendering correctly

Open
#198 5 comments 3 reactions 0 assignees View on GitHub
type:bug
Dominant language
Java
Stars
1k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

I'm using the c# port of stringtemplate 4.0.6.9004.

Per the [cheatsheet](https://github.com/antlr/stringtemplate4/blob/master/doc/cheatsheet.md), stringtemplate4 is supposed to recognize `\<` and `\>` as escaped characters `<` and `>`. Escaping `\<` works properly but `\>` does not.

This template worked correctly in stringtemplate3 but in upgrading to stringtemplate4, we see that the string `"\<\>"` rendering yields `"<\>"`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the escaping behavior described in the cheatsheet and reproduce the template containing the escaped less-than and greater-than characters in the C# port. Done means the template renders both escaped characters correctly, matching the documented behavior and the StringTemplate 3 result.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.