Skip to content

Commit 50a49e7

Browse files
committed
Fix idempotency issue with raw strings
1 parent 6ac1fcd commit 50a49e7

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

src/comment.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,6 @@ where
13601360
match chr {
13611361
'"' => {
13621362
if sharps == 0 {
1363-
char_kind = FullCodeCharKind::Normal;
13641363
CharClassesStatus::Normal
13651364
} else if is_raw_string_suffix(&mut self.base, sharps) {
13661365
CharClassesStatus::RawStringSuffix(sharps)

tests/source/issue-6161.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
fn f() {
2+
my_macro! {
3+
m =>
4+
"a": r"bb
5+
ccc
6+
",
7+
};
8+
}

tests/target/issue-6161.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
fn f() {
2+
my_macro! {
3+
m =>
4+
"a": r"bb
5+
ccc
6+
",
7+
};
8+
}

0 commit comments

Comments
 (0)