about summary refs log tree commit diff
path: root/compiler/rustc_lexer/src/unescape.rs
AgeCommit message (Expand)AuthorLines
2025-04-04Replace `rustc_lexer/unescape` with `rustc-literal-escaper` crateGuillaume Gomez-438/+0
2025-03-18Revert "Rollup merge of #136355 - GuillaumeGomez:proc-macro_add_value_retriev...Ralf Jung-0/+438
2025-02-10Extract `unescape` from `rustc_lexer` into its own crateGuillaume Gomez-438/+0
2024-04-24Improved the compiler code with clippyMichael Scholten-2/+2
2024-01-25Use `unescape_unicode` for raw C string literals.Nicholas Nethercote-19/+14
2024-01-25Rename the unescaping functions.Nicholas Nethercote-4/+8
2024-01-25Rename and invert sense of `Mode` predicates.Nicholas Nethercote-32/+24
2024-01-25Rework `CStrUnit`.Nicholas Nethercote-34/+45
2024-01-25Use `from` instead of `into` in unescaping code.Nicholas Nethercote-4/+4
2024-01-12Detect `NulInCStr` error earlier.Nicholas Nethercote-2/+15
2023-12-13Rename some unescaping functions.Nicholas Nethercote-9/+7
2023-12-13Adjust `Mode::is_unicode_escape_disallowed`.Nicholas Nethercote-2/+3
2023-12-09Tweak `Mode`.Nicholas Nethercote-34/+38
2023-12-09Remove an unnecessary `into`.Nicholas Nethercote-1/+1
2023-12-09Eliminate `is_byte: bool` args in unescaping code.Nicholas Nethercote-21/+19
2023-12-09Remove explicit `\n` and `\t` handling in `unescape_str_common`.Nicholas Nethercote-2/+0
2023-12-09Add some useful comments.Nicholas Nethercote-4/+8
2023-12-07Fix an out-of-date comment.Nicholas Nethercote-1/+1
2023-12-07Identify impossible cases in `ascii_escapes_should_be_ascii`.Nicholas Nethercote-2/+3
2023-12-07De-pub some functions.Nicholas Nethercote-3/+3
2023-07-23fix some clippy::style findingsMatthias Krüger-1/+1
2023-05-02refactor unescapeDeadbeef-30/+61
2023-05-02initial step towards implementing C string literalsDeadbeef-78/+121
2023-03-09fix(lexer): not skipped whitespace warning for '\x0c'bohan-3/+3
2023-01-17Remove double spaces after dots in commentsMaybe Waffle-1/+1
2022-12-12minor code cleanupsMatthias Krüger-2/+1
2022-11-08Simplify `unescape_{char,byte}`.Nicholas Nethercote-9/+5
2022-11-05Rename some `result` variables as `res`, for consistency.Nicholas Nethercote-6/+6
2022-11-05Remove `unescape_byte_literal`.Nicholas Nethercote-14/+2
2022-11-04Improve comments.Nicholas Nethercote-4/+1
2022-11-04Make non-ASCII errors more consistent.Nicholas Nethercote-5/+2
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-09-28Small cleanups in unescaping code.Nicholas Nethercote-14/+11
2022-09-27Fix an incorrect comment.Nicholas Nethercote-1/+1
2022-06-28fix typo in commentProloy Mishra-1/+1
2022-02-24Improve `scan_escape`.Nicholas Nethercote-23/+22
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-11Renamed variable str -> tail for clarityAnton Golov-5/+5
2021-08-11Warn when an escaped newline skips multiple linesAnton Golov-0/+9
2021-07-30Add warning when whitespace is not skipped after an escaped newline.Anton Golov-4/+30
2020-12-18Fix typoHirochika Matsumoto-1/+1
2020-08-30mv compiler to compiler/mark-0/+344