Skip to content

Add comment and spacing tokens to the Java ANTRL4 grammar #1

Open
@green-coder

Description

@green-coder

Those tokens are skipped in the current grammar file:

//
// Whitespace and comments
//

WS  :  [ \t\r\n\u000C]+ -> skip
    ;

COMMENT
    :   '/*' .*? '*/' -> skip
    ;

LINE_COMMENT
    :   '//' ~[\r\n]* -> skip
    ;

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions