about summary refs log tree commit diff
path: root/compiler/rustc_lexer/src
AgeCommit message (Expand)AuthorLines
2023-03-09fix(lexer): not skipped whitespace warning for '\x0c'bohan-3/+3
2023-03-03Rustdoc-ify LiteralKind noteest31-5/+7
2023-02-14Update lexer lifetime test许杰友 Jieyou Xu (Joe)-1/+1
2023-02-14Don't recover lifetimes/labels containing emojis as character literals许杰友 Jieyou Xu (Joe)-10/+33
2023-01-17Remove double spaces after dots in commentsMaybe Waffle-2/+2
2022-12-27Recover `fn` keyword as `Fn` trait in boundsMichael Goulet-1/+1
2022-12-12minor code cleanupsMatthias Krüger-2/+1
2022-12-10compiler: remove unnecessary imports and qualified pathsKaDiWa-1/+0
2022-11-24Auto merge of #104507 - WaffleLapkin:asderefsyou, r=wesleywiserbors-4/+2
2022-11-16Use `as_deref` in compiler (but only where it makes sense)Maybe Waffle-4/+2
2022-11-16Use `token::Lit` in `ast::ExprKind::Lit`.Nicholas Nethercote-2/+6
2022-11-09Rollup merge of #103919 - nnethercote:unescaping-cleanups, r=matkladDylan DPC-103/+66
2022-11-08Simplify `unescape_{char,byte}`.Nicholas Nethercote-17/+9
2022-11-07Make underscore_literal_suffix a hard error.Nicholas Nethercote-3/+6
2022-11-05Rename some `result` variables as `res`, for consistency.Nicholas Nethercote-6/+6
2022-11-05Remove `unescape_byte_literal`.Nicholas Nethercote-21/+7
2022-11-04Inline and remove `validate_int_literal`.Nicholas Nethercote-5/+5
2022-11-04Improve comments.Nicholas Nethercote-4/+1
2022-11-04Make non-ASCII errors more consistent.Nicholas Nethercote-10/+4
2022-11-03Use `Mode` less.Nicholas Nethercote-24/+22
2022-11-03Clarify range calculations.Nicholas Nethercote-10/+12
2022-11-03Rename some variables.Nicholas Nethercote-38/+32
2022-10-26rustc_lexer::TokenKind improve docsTshepang Mbambo-5/+18
2022-09-28Auto merge of #102302 - nnethercote:more-lexer-improvements, r=matkladbors-35/+34
2022-09-28Address review comments.Nicholas Nethercote-2/+4
2022-09-28Small cleanups in unescaping code.Nicholas Nethercote-14/+11
2022-09-27Fix an incorrect comment.Nicholas Nethercote-1/+1
2022-09-26Add `rustc_lexer::TokenKind::Eof`.Nicholas Nethercote-4/+13
2022-09-26Rename some things.Nicholas Nethercote-18/+18
2022-09-26Make `rustc_lexer::cursor::Cursor` public.Nicholas Nethercote-21/+9
2022-09-08remove unnecessary `PartialOrd` and `Ord`Takayuki Maeda-1/+1
2022-08-18Add diagnostic translation lints to crates that don't emit them5225225-0/+2
2022-08-01Shrink `Token`.Nicholas Nethercote-71/+71
2022-08-01Inline `first_token`.Nicholas Nethercote-0/+1
2022-06-28fix typo in commentProloy Mishra-1/+1
2022-03-23Reduce max hash in raw strings from u16 to u8Grisha Vartanyan-11/+11
2022-03-16Add test for >65535 hashes in lexing raw stringGrisha-0/+17
2022-02-24Improve `scan_escape`.Nicholas Nethercote-23/+22
2021-12-03Auto merge of #91393 - Julian-Wollersberger:lexer_optimization, r=petrochenkovbors-25/+28
2021-12-01Replace `nth_char(0)` with `next()` in `cursor.first()`Julian Wollersberger-25/+28
2021-11-23udpate comment to be more accurateEsteban Kuber-2/+1
2021-11-23Tokenize emoji as if they were valid indentifiersEsteban Kuber-0/+25
2021-11-06use matches!() macro in more placesMatthias Krüger-5/+4
2021-10-15Revert "Auto merge of #89709 - clemenswasser:apply_clippy_suggestions_2, r=pe...Matthias Krüger-5/+6
2021-10-10Apply clippy suggestionsClemens Wasser-6/+5
2021-08-22Fix more “a”/“an” typosFrank Steffahn-1/+1
2021-08-11Renamed variable str -> tail for clarityAnton Golov-5/+5
2021-08-11Warn when an escaped newline skips multiple linesAnton Golov-0/+14
2021-07-30Add warning when whitespace is not skipped after an escaped newline.Anton Golov-4/+49
2021-07-26Remove ASCII fast path from rustc_lexer::{is_id_continue, is_id_start}Ibraheem Ahmed-12/+2