Closed Jericho closed 6 years ago
This looks a lot like https://github.com/antlr/stringtemplate4/issues/172
We added a warning for those delimiters. https://github.com/antlr/stringtemplate4/pull/149
@parrt I looked at the PR that you referenced and, as far as I can see, only @
, -
and _
(in addition to the letters of the alphabet and digits) are marked as "reserved". It doesn't seem to address the issue I reported with square brackets.
Ah. I better add those. thanks.
Using StringTemplate4 nuget package version 4.0.8 in Visual Studio 2015.
The following C# code:
Yields the following exception:
Exception of type 'Antlr4.StringTemplate.Compiler.TemplateException' was thrown.
with the following stack trace:I had a discussion with Sam Harwell in the
antlrcs
gitter room and he pointed out that the issue is with the closing square bracket.