[stringtemplate-interest] [ST4 Beta-2] Interpreter#setDefaultArgument ignores customized delimiter chars
Terence Parr
parrt at cs.usfca.edu
Wed Jan 26 16:59:26 PST 2011
fixed. thanks!
ter
On Jan 26, 2011, at 12:51 AM, Udo Borkowski wrote:
> In Interpreter#setDefaultArgument there is the following code:
>
> if ( defArgTemplate.startsWith("{<(") && defArgTemplate.endsWith(")>}") ) {
> invokedST.rawSetAttribute(arg.name, toString(invokedST, defaultArgST));
> } ...
>
> Because of the hard coded strings this only works fine if the default start and end delimiter ('<' and '>') are used. Using any other delimiter (like '$') will fail, even if correctly specified with the group construction.
>
> The code should probably refer to group.delimiterStartChar and delimiterStopChar.
>
>
> 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