Merge branch '17-line-and-block-comments' into 'master'

add lexer rules for line and block comments

Closes #17

See merge request mkais001/klang!12
This commit is contained in:
Marvin Kaiser
2020-02-04 11:11:06 +01:00

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
;