Closed xied75 closed 7 years ago
@parrt Sorry to ping you, I guess no one really understands the design intention better than you. :)
Ah. the "NO_NL" part is I think other than the first and last newline. <<...>>
ignores the first and last so we can write things like:
f() ::= <<
hi
mom
>>
There is exactly one \n, between the two words, in order to avoid having to write this:
f() ::= <<hi
mom>>
I might be very dumb here but according to the doc: https://github.com/antlr/stringtemplate4/blob/master/doc/groups.md
And the STGLexer defined BIGSTRING as << .. >>, and the BIGSTRING_NO_NL as <% .. %>.
But the test here: https://github.com/antlr/stringtemplate4/blob/master/test/org/stringtemplate/v4/test/TestGroups.java#L715-L717
This is BIGSTRING apparently, why are we expecting "Foo bar" without any newline or indent? Shouldn't that be the behavior of BIGSTRING_NO_NL?