Skip to content

Commit 53ab5de

Browse files
committed
Fix escaped quotes in raw string literals
1 parent 76f7d7e commit 53ab5de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

parser/src/lexer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ where
530530
loop {
531531
match self.next_char() {
532532
Some('\\') => {
533-
if self.chr0 == Some(quote_char) {
533+
if self.chr0 == Some(quote_char) && !is_raw {
534534
string_content.push(quote_char);
535535
self.next_char();
536536
} else if is_raw {

0 commit comments

Comments
 (0)