mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix escaped quotes in raw string literals
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user