antlr / stringtemplate4

StringTemplate 4
http://www.stringtemplate.org
Other
956 stars 231 forks source link

STGroupString does not work with default delimiters #131

Closed mar9000 closed 6 years ago

mar9000 commented 8 years ago

Loading the following String using STGroupString

delimiters "<",">"

chapter(title) ::= <<
chapter <title>
>>

reports parsing error:

<string> 1:55: invalid character '>'
<string> 1:53: premature EOF

Java part is:

STGroupString documentStg = new STGroupString(templateString);
ST documentTemplate = documentStg.getInstanceOf("chapter");

Using other delimiters, for example "$","$" works without problems.

mar9000 commented 8 years ago

forget to mention the version: 4.0.8