lexer: Strip carriage returns from comments and raw string literals, and strip trailing newline from line comments.