add lexer rules for line and block comments

This commit is contained in:
2020-02-04 11:02:34 +01:00
parent 47390f6757
commit d3a4af0b8c

View File

@@ -171,6 +171,14 @@ IDENT
: [a-zA-Z][a-zA-Z0-9]*
;
BLOCK_COMMENT
: '/*' .*? '*/' -> skip
;
LINE_COMMENT
: '//' ~[\r\n]* -> skip
;
WS
: [ \t\r\n] -> skip
;