Escape ? in C string literals

Fixes #714
This commit is contained in:
Max Brunsfeld 2020-09-23 13:06:06 -07:00
parent cb343cad5e
commit ffd3bdc4c1

View file

@ -1509,6 +1509,7 @@ impl Generator {
for c in name.chars() {
match c {
'\"' => result += "\\\"",
'?' => result += "\\?",
'\\' => result += "\\\\",
'\u{000c}' => result += "\\f",
'\n' => result += "\\n",