[stringtemplate-interest] [ST4 Beta-2] No whitespace allowed before <@end> when at new line

Udo Borkowski ub at abego-software.de
Wed Jan 26 03:52:51 PST 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110126/5cf3ee61/attachment-0001.html 


More information about the stringtemplate-interest mailing list