Hmm--could you make this "either output a \ or escape a newline" for <\\>? The lack of a way to output a \ from ST is annoying and escaping newlines is rather minimal functionality for a lexeme.
--Loring ----- Original Message ---- > From: Terence Parr <[email protected]> > To: String Template <[email protected]> > Cc: antlr-interest ANTLR <[email protected]> > Sent: Thursday, July 9, 2009 6:50:12 PM > Subject: [antlr-interest] ST feature proposal > > Howdy, I think Jim Idle brought up that sometimes you want to format > your templates without screwing up the output. I just added a feature > proposal: > > http://www.antlr.org/jira/browse/ST-57 > > Example: > > "start of a string<\\> > <\\> > " > > ST would ignore the newline and any indentation. > > I can easily slip this in for 3.2.1 release, which I guess will be the > book release > > Ter > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
