summary refs log tree commit diff
path: root/compiler/rustc_lexer/src/lib.rs
AgeCommit message (Expand)AuthorLines
2024-12-09Add test to check unicode identifier versionEric Huss-0/+1
2024-12-01Revert "Reject raw lifetime followed by \' as well"Michael Goulet-11/+1
2024-11-25Clean up `c_or_byte_string`.Nicholas Nethercote-4/+4
2024-11-19Remove `TokenKind::InvalidPrefix`.Nicholas Nethercote-13/+8
2024-11-19Improve `TokenKind` comments.Nicholas Nethercote-41/+39
2024-11-19Improve `fake_ident_or_unknown_prefix`.Nicholas Nethercote-6/+5
2024-10-30Reject raw lifetime followed by \' as wellMichael Goulet-1/+11
2024-10-08Reserve guarded string literals (RFC 3593)Peter Jaszkowiak-8/+85
2024-09-06Add initial support for raw lifetimesMichael Goulet-1/+12
2024-09-06Format lexerMichael Goulet-1/+1
2024-09-06Reserve prefix lifetimes tooMichael Goulet-9/+17
2024-08-27Add `warn(unreachable_pub)` to `rustc_lexer`.Nicholas Nethercote-0/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-2/+2
2024-06-12Use `tidy` to sort crate attributes for all compiler crates.Nicholas Nethercote-0/+2
2024-04-24Improved the compiler code with clippyMichael Scholten-3/+3
2024-04-10Properly handle emojis as literal prefix in macrosEsteban Küber-1/+5
2024-02-06Invert diagnostic lints.Nicholas Nethercote-2/+1
2023-12-20Undeprecate and use lint `unstable_features`León Orell Valerian Liehr-2/+3
2023-07-29Update lexer emoji diagnostics to Unicode 15.0Charles Lew-7/+4
2023-07-23reimplement C string literalsDeadbeef-0/+7
2023-07-05Revert the lexing of c_str_literalsLeón Orell Valerian Liehr-7/+0
2023-05-15Don't try to eat non-existent decimal digits.Nicholas Nethercote-2/+6
2023-05-15Make `Cursor::number` less DRY.Nicholas Nethercote-10/+10
2023-05-02address commentsDeadbeef-1/+1
2023-05-02fix TODO commentsDeadbeef-57/+51
2023-05-02initial step towards implementing C string literalsDeadbeef-0/+30
2023-04-10Revert "Don't recover lifetimes/labels containing emojis as character literals"Michael Goulet-33/+10
2023-03-03Rustdoc-ify LiteralKind noteest31-5/+7
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-1/+1
2022-12-27Recover `fn` keyword as `Fn` trait in boundsMichael Goulet-1/+1
2022-12-10compiler: remove unnecessary imports and qualified pathsKaDiWa-1/+0
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-5/+5
2022-11-07Make underscore_literal_suffix a hard error.Nicholas Nethercote-3/+6
2022-11-04Inline and remove `validate_int_literal`.Nicholas Nethercote-5/+5
2022-10-26rustc_lexer::TokenKind improve docsTshepang Mbambo-5/+18
2022-09-28Address review comments.Nicholas Nethercote-2/+4
2022-09-26Add `rustc_lexer::TokenKind::Eof`.Nicholas Nethercote-4/+13
2022-09-26Rename some things.Nicholas Nethercote-12/+12
2022-09-26Make `rustc_lexer::cursor::Cursor` public.Nicholas Nethercote-19/+7
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-41/+47
2022-08-01Inline `first_token`.Nicholas Nethercote-0/+1
2022-03-23Reduce max hash in raw strings from u16 to u8Grisha Vartanyan-7/+7
2021-12-03Auto merge of #91393 - Julian-Wollersberger:lexer_optimization, r=petrochenkovbors-13/+7
2021-12-01Replace `nth_char(0)` with `next()` in `cursor.first()`Julian Wollersberger-13/+7
2021-11-23udpate comment to be more accurateEsteban Kuber-2/+1
2021-11-23Tokenize emoji as if they were valid indentifiersEsteban Kuber-0/+25