diff --git a/parser/src/lexer.rs b/parser/src/lexer.rs index 8667165ea..10fb77853 100644 --- a/parser/src/lexer.rs +++ b/parser/src/lexer.rs @@ -530,7 +530,7 @@ where loop { match self.next_char() { Some('\\') => { - if self.chr0 == Some(quote_char) { + if self.chr0 == Some(quote_char) && !is_raw { string_content.push(quote_char); self.next_char(); } else if is_raw {