mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-28 22:35:02 +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() => {
|
'\\' if !self.kind.is_raw() => {
|
||||||
self.next_char();
|
self.next_char();
|
||||||
if let Some('{' | '}') = self.peek() {
|
if let Some('{' | '}') = self.peek() {
|
||||||
content.push_str("\\");
|
content.push('\\');
|
||||||
} else {
|
} else {
|
||||||
content.push_str(&self.parse_escaped_char()?);
|
content.push_str(&self.parse_escaped_char()?);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue