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:
parent
28abae9cfb
commit
d147e9202d
|
@ -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
|
||||||
;
|
;
|
||||||
|
|
|
@ -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
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue