[antlr-interest] unclosed strings in HTML
Adrian Ber
beradrian at yahoo.com
Mon Aug 17 02:56:11 PDT 2009
Hi,
I have an HTML grammar and I have a lexer rule for strings:
STRING : '"' (ESC|~('"'|'\\'|'\n'|'\r'))* '"'
| '\'' (ESC|~('\''|'\\'|'\n'|'\r'))* '\''
;
But if I have a text in html like
I'm just a text
then the lexer will try to identify a string and it will generate an error.
How can I solve this?
Thanks,
Adrian.
New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090817/4b3ce4fc/attachment.html
More information about the antlr-interest
mailing list