better process CRLF

This commit is contained in:
2024-10-10 15:53:16 +00:00
parent 0ddad5682a
commit cafd3ccdac
4 changed files with 37 additions and 24 deletions

View File

@ -76,5 +76,5 @@ fragment ESC : '\\n'| '\\"' | '\\\\';
// Whitespace and comments
WS: [ \t\r\n]+ -> skip;
LINE_COMMENT : '//' .*? '\r'? ('\n'|EOF) -> skip;
LINE_COMMENT : '//' .*? ('\r\n'|'\r'|'\n'|EOF) -> skip;
BLOCK_COMMENT: '/*' .*? '*/' -> skip;