[antlr-interest] Want PAID Antlr work?
bkiers at gmail.com
Fri Dec 23 23:20:32 PST 2011
STRING_LITERAL: '\'' (~'\'' | '\'\'')* '\'';
Note that the string above may contain line breaks. If you don't want that,
STRING_LITERAL: '\'' (~('\'' | '\r' | '\n') | '\'\'')* '\'';
On Sat, Dec 24, 2011 at 5:03 AM, James Ladd <james_ladd at hotmail.com> wrote:
> I hope this isnt too trivial to post to the list but im wondering how to
> my rule to capture nested quotes?
> STRING_LITERAL: '\'' .* '\'';
> A string can be anything enclosed in single quotes. However I also need to
> cater for
> a nested double quote. Eg: 'this string has a '' in it.'
> Rgs, James.
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
More information about the antlr-interest