> Hi Ankit,
If I understand the question correctly,
then have you tried removing {$channel=HIDDEN;} from the lexer rule?
i.e.
LINE_COMMENT
: '//' ~('\n' | '\r')* '\r'? '\n' {$channel=HIDDEN;}
;
should be
LINE_COMMENT
: '//' ~('\n' | '\r')* '\r'? '\n'
;
Eric