At 07:27 3/07/2009, Penningroth, Mark wrote: >dqcon > : '"' > ( (~'"')=> > ( ('\\')=>'\\'. > | . > ) > )* > '"'; Like you were already told, this should be a lexer rule: DQTEXT : '"' ('\\' . | ~('\\' | '"'))* '"' ;