[antlr-interest] Re: java.g and single line commnets
Brad Schick
schick at robotbattle.com
Wed May 5 12:29:09 PDT 2004
>It does not have a newline. Is there a work around for the
>single line comments?
Just add a question mark at the final newline match.
SL_COMMENT
: "//" (~('\n'|'\r'))* ('\n'|'\r'('\n')?)?
{$setType(Token.SKIP); newline();}
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list