accomodate \0\ in partial strings, print null as \0\ (#267, #526), update prolog parser, version bump

This commit is contained in:
Mark Thom
2020-05-18 23:45:21 -06:00
parent 041dc039d4
commit e0e3b180e7
7 changed files with 28 additions and 58 deletions

View File

@@ -160,7 +160,7 @@ fn char_to_string(is_quoted: bool, c: char) -> String {
'\u{d8}' ..= '\u{f6}' => c.to_string(),
'\u{f8}' ..= '\u{74f}' => c.to_string(),
'\x20' ..= '\x7e' => c.to_string(),
_ => format!("\\x{:x}\\", c as u32),
_ => format!("\\{:x}\\", c as u32),
}
}