[stringtemplate-interest] [ST4 Beta-2] Newline before '>>' not removed when defining region
Terence Parr
parrt at cs.usfca.edu
Wed Jan 26 17:36:51 PST 2011
Fixed. Man, your an animal! :) Thanks
Ter
On Jan 26, 2011, at 4:34 AM, Udo Borkowski wrote:
> Typically the newline before the ">>" of a template definition is removed, i.e.
>
> -----------
> t() ::= <<abc>>
> -----------
>
> and
>
> -----------
> t() ::= <<
> abc
>>>
> -----------
>
> produce the same output.
>
> However when redefining a region (template) the newline before the >> is kept, i.e.
>
> -----------
> @method.preamble() ::= <<System.out.println("enter");>>
> -----------
>
> and
>
> -----------
> @method.preamble() ::= <<
> System.out.println("enter");
>>>
> ------------
>
> produce different output. (the 2nd version appends an extra newline)
>
>
> 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