forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#136919 - hkBst:peekable_lexer, r=<try>
Use Peekable in lexer_unescape Use a Peekable<CharIndices<'_>> instead of going back and forth between string slice and chars iterator. * this gets rid of most position computations * allows removal of double traversal for correct backslash newline escapes in skip_ascii_whitespace Improves documentation r? `@nnethercote`
- Loading branch information
Showing
1 changed file
with
37 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters