Skip to content

Commit 9167d5b

Browse files
committed
added comments to hidden channel. still seems to get correct output; ws is still collected all in WS rule. Doesn't emit comments. line info now correct in INFO features.
1 parent 551e0f7 commit 9167d5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • java/grammars/org/antlr/codebuff

java/grammars/org/antlr/codebuff/Java.g4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,9 +1016,9 @@ WS : [ \t\r\n\u000C]+ -> channel(HIDDEN) // CodeBuff needs to see all whitespa
10161016
;
10171017

10181018
COMMENT
1019-
: '/*' .*? '*/' -> skip
1019+
: '/*' .*? '*/' -> channel(HIDDEN)
10201020
;
10211021

10221022
LINE_COMMENT
1023-
: '//' ~[\r\n]* -> skip
1023+
: '//' ~[\r\n]* -> channel(HIDDEN)
10241024
;

0 commit comments

Comments
 (0)