This is related to
- https://www.stringtemplate.org/api/org/stringtemplate/v4/AutoIndentWriter.html
- https://github.com/antlr/stringtemplate4/blob/master/src/org/stringtemplate/v4/AutoIndentWriter.java
If I have a template like...
foo(bar) ::= <<
{
inner
}
>>
...it will cause an indentation event before 'inner' which ultimately calls pushIndentation. My question is how to cause an indentation event when using '<% ... %>' templates?
Or, what would be the equivalent to the previous template?
The following is similar but not equivalent to the previous example.
foo(bar) ::= <%
{
<\n><\ ><\ >inner
<\n>}
%>
What needs to be done to make it equivalent?