Push char

This commit is contained in:
yt2b 2024-01-20 15:46:15 +09:00
parent 29c98d4a2f
commit e247b89c1a

View file

@ -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()?);
}