Use ->skip instead of ->channel(HIDDEN) to ensure reported token counts correspond to the number of parsed tokens in TestPerformance

This commit is contained in:
Sam Harwell 2013-05-01 22:02:26 -05:00
parent 28abae9cfb
commit d147e9202d
2 changed files with 6 additions and 6 deletions

View File

@ -944,13 +944,13 @@ JavaIDDigit
'\u1040'..'\u1049' '\u1040'..'\u1049'
; ;
WS : (' '|'\r'|'\t'|'\u000C'|'\n')+ -> channel(HIDDEN) WS : (' '|'\r'|'\t'|'\u000C'|'\n')+ -> skip
; ;
COMMENT COMMENT
: '/*' .*? '*/' -> channel(HIDDEN) : '/*' .*? '*/' -> skip
; ;
LINE_COMMENT LINE_COMMENT
: '//' ~('\n'|'\r')* '\r'? '\n' -> channel(HIDDEN) : '//' ~('\n'|'\r')* '\r'? '\n' -> skip
; ;

View File

@ -1046,13 +1046,13 @@ JavaIDDigit
'\u1040'..'\u1049' '\u1040'..'\u1049'
; ;
WS : (' '|'\r'|'\t'|'\u000C'|'\n')+ -> channel(HIDDEN) WS : (' '|'\r'|'\t'|'\u000C'|'\n')+ -> skip
; ;
COMMENT COMMENT
: '/*' .*? '*/' -> channel(HIDDEN) : '/*' .*? '*/' -> skip
; ;
LINE_COMMENT LINE_COMMENT
: '//' ~('\n'|'\r')* '\r'? '\n' -> channel(HIDDEN) : '//' ~('\n'|'\r')* '\r'? '\n' -> skip
; ;