mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-07 21:25:31 +00:00
Push char
This commit is contained in:
parent
29c98d4a2f
commit
e247b89c1a
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ impl<'a> StringParser<'a> {
|
|||
'\\' if !self.kind.is_raw() => {
|
||||
self.next_char();
|
||||
if let Some('{' | '}') = self.peek() {
|
||||
content.push_str("\\");
|
||||
content.push('\\');
|
||||
} else {
|
||||
content.push_str(&self.parse_escaped_char()?);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue