[stringtemplate-interest] [ST4 Beta-2] Interpreter#setDefaultArgument ignores customized delimiter chars
Udo Borkowski
ub at abego-software.de
Wed Jan 26 00:51:48 PST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110126/02a0624d/attachment.html
More information about the stringtemplate-interest
mailing list