about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/lexer
AgeCommit message (Expand)AuthorLines
2025-07-18Deduplicate `unmatched_delims` in `rustc_parse` to reduce confusionxizheyin-9/+26
2025-06-23update to literal-escaper 0.0.4 for better API without `unreachable` and fast...Marijn Schouten-62/+32
2025-05-27Report text_direction_codepoint_in_literal when parsingMatthew Jasper-2/+87
2025-05-05Implement RFC 3503: frontmattersDeadbeef-7/+99
2025-04-23Rollup merge of #140175 - Kivooeo:new-fix-one, r=compiler-errorsChris Denton-2/+2
2025-04-23rc and cr more clear error messageKivooeo-2/+2
2025-04-22Rename `open_brace` to `open_delimiters`xizheyin-23/+26
2025-04-22Move make_unclosed_delims_error to lexer/diagonostics.rsxizheyin-1/+26
2025-04-21Remove `token::{Open,Close}Delim`.Nicholas Nethercote-59/+52
2025-04-14Auto merge of #124141 - nnethercote:rm-Nonterminal-and-TokenKind-Interpolated...bors-1/+1
2025-04-04Replace `rustc_lexer/unescape` with `rustc-literal-escaper` crateGuillaume Gomez-8/+4
2025-04-02Impl `Copy` for `Token` and `TokenKind`.Nicholas Nethercote-1/+1
2025-03-18Revert "Rollup merge of #136355 - GuillaumeGomez:proc-macro_add_value_retriev...Ralf Jung-4/+4
2025-03-17Rollup merge of #136355 - GuillaumeGomez:proc-macro_add_value_retrieval_metho...Jacob Pratt-4/+4
2025-03-03Rename `ast::TokenKind::Not` as `ast::TokenKind::Bang`.Nicholas Nethercote-2/+2
2025-03-03Replace `ast::TokenKind::BinOp{,Eq}` and remove `BinOpToken`.Nicholas Nethercote-13/+13
2025-02-10Extract `unescape` from `rustc_lexer` into its own crateGuillaume Gomez-4/+4
2025-01-28replaces few consts with statics to reduce readonly sectionklensy-1/+1
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-4/+2
2024-12-13Remove `Lexer`'s dependency on `Parser`.Nicholas Nethercote-97/+37
2024-12-12Remove `PErr`.Nicholas Nethercote-7/+7
2024-12-09Fix typo in RFC mention 3598 -> 3593Esteban Küber-1/+1
2024-12-01Only error raw lifetime followed by \' in edition 2021+Michael Goulet-2/+21
2024-11-28Rollup merge of #133487 - pitaj:reserve-guarded-strings, r=fee1-deadGuillaume Gomez-6/+10
2024-11-25fix confusing diagnostic for reserved `##`Peter Jaszkowiak-6/+10
2024-11-25Streamline `lex_token_trees` error handling.Nicholas Nethercote-20/+14
2024-11-25Fix some formatting.Nicholas Nethercote-5/+15
2024-11-25Split `Lexer::bump`.Nicholas Nethercote-7/+27
2024-11-25Merge `TokenTreesReader` into `StringReader`.Nicholas Nethercote-49/+31
2024-11-21Prepare for invisible delimiters.Nicholas Nethercote-4/+12
2024-11-19Remove `TokenKind::InvalidPrefix`.Nicholas Nethercote-3/+2
2024-10-30Enforce that raw lifetime identifiers must be valid raw identifiersMichael Goulet-4/+10
2024-10-23"innermost", "outermost", "leftmost", and "rightmost" don't need hyphensJosh Triplett-1/+1
2024-10-08Reserve guarded string literals (RFC 3593)Peter Jaszkowiak-1/+83
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-5/+5
2024-09-17Store raw ident span for raw lifetimeMichael Goulet-0/+3
2024-09-09Remove needless returns detected by clippy in the compilerEduardo Sánchez Muñoz-1/+1
2024-09-06Add some more testsMichael Goulet-1/+1
2024-09-06Add initial support for raw lifetimesMichael Goulet-3/+36
2024-09-06Format lexerMichael Goulet-19/+22
2024-09-06Reserve prefix lifetimes tooMichael Goulet-0/+10
2024-08-14Use `impl PartialEq<TokenKind> for Token` more.Nicholas Nethercote-1/+1
2024-07-30Auto merge of #127955 - chenyukang:yukang-fix-mismatched-delimiter-issue-1278...bors-3/+18
2024-07-29Reformat `use` declarations.Nicholas Nethercote-19/+23
2024-07-25add limit for unclosed delimiters in lexer diagnosticyukang-3/+18
2024-06-18Use a dedicated type instead of a reference for the diagnostic contextOli Scherer-4/+4
2024-06-18Prefer `dcx` methods over fields or fields' methodsOli Scherer-8/+7
2024-06-05Remove `stream_to_parser`.Nicholas Nethercote-1/+2
2024-06-05Don't use the word "parse" for lexing operations.Nicholas Nethercote-27/+24
2024-06-05`UNICODE_ARRAY` and `ASCII_ARRAY` fixes.Nicholas Nethercote-37/+38