]> git.lizzy.rs Git - rust.git/commit
Fix the length displayed for byte string literals with escaped newlines
authorNoritada Kobayashi <noritada.kobayashi@gmail.com>
Mon, 7 Nov 2022 10:25:07 +0000 (19:25 +0900)
committerNoritada Kobayashi <noritada.kobayashi@gmail.com>
Mon, 7 Nov 2022 11:07:16 +0000 (20:07 +0900)
commit180b4cedec730d0c0127d0d41714abe4176d5365
treeef1f298e905ee1de8b240642c2d63a882e0448e5
parentd03c1c87d4ca2d524646316387d47b12524ac451
Fix the length displayed for byte string literals with escaped newlines

The length of byte strings containing escaped newlines is displayed two
bytes longer when the first escaped character is a newline.

This is due to a small bug in handling the first escaped newline in
string literals.

Closes #13567
crates/syntax/src/ast/token_ext.rs