summary refs log tree commit diff
path: root/compiler/rustc_lexer/src
AgeCommit message (Collapse)AuthorLines
2020-10-30Add back missing commentsJoshua Nelson-0/+1
2020-10-30Fix even more clippy warningsJoshua Nelson-6/+4
2020-10-09Noticed a potential bug in `eat_while()`: it doesn't account for number of ↵Julian Wollersberger-20/+14
UTF8 bytes. Fixed it by inlining it in the two places where the count is used and simplified the logic there.
2020-09-21Fix typo in rustc_lexer docsLingMan-1/+1
Also add an Oxford comma while we're editing that line.
2020-09-02lexer: Tiny improvement to shebang detectionVadim Petrochenkov-5/+9
Lexer now discerns between regular comments and doc comments, so use that. The change only affects the choice of reported errors.
2020-08-30Move lexer unit tests to rustc_lexerAleksey Kladov-20/+140
StringReader is an intornal abstraction which at the moment changes a lot, so these unit tests cause quite a bit of friction. Moving them to rustc_lexer and more ingerated-testing style should make them much less annoying, hopefully without decreasing their usefulness much. Note that coloncolon tests are removed (it's unclear what those are testing). \r\n tests are removed as well, as we normalize line endings even before lexing.
2020-08-30mv compiler to compiler/mark-0/+1687