[stringtemplate-interest] [ST4 Beta-2] No whitespace allowed before <@end> when at new line
Terence Parr
parrt at cs.usfca.edu
Wed Jan 26 17:07:45 PST 2011
The grammar needed to match an optional INDENT before the @end
fixed.
ter
On Jan 26, 2011, at 3:52 AM, Udo Borkowski wrote:
> I assume this is a bug:
>
> One cannot create a region like this:
>
> -------------
> method(name,code) ::= <<
> public void <name>() {
> <@block>
> <code>
> <@end>
> }
> >>
> -------------
>
> This produces the error:
>
> mismatched input ' ' expecting LDELIM
>
> When the whitespace before the <@end> is removed the error is gone.
>
> -------------
> method(name,code) ::= <<
> public void <name>() {
> <@block>
> <code>
> <@end>
> }
> >>
> -------------
>
> This only happens when the whitespaces are at the front of the line, immediately before the <@end>. The following example is OK, too:
>
> -------------
> method(name,code) ::= <<
> public void <name>() {
> <@block>
> <code> <@end>
> }
> >>
> -------------
>
> Udo
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list