I have the following rule in my lexer
Pragma
: ('#' "pragma" (~('\r' | '\n'))* EndOfLine)
{_ttype = ANTLR_USE_NAMESPACE(antlr)Token::SKIP; newline();}
;
As I understand it, this means the lexer will skip everything till the
first newline char. How would I collect this text anyways, for
parsing/analysis done by some other method?