git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: fix apostrophe escape in literals
commitecb97a77e3f9a80a31acc9d4cb4033535c08cfaa authorAndy Arvanitis <andyarvanitis@gmail.com> dateThu 26 Jan 2017, 17:50 (10 years ago) parenta88fa55
1 file changed+1
src/Language/PureScript/Pretty/Cpp.hs+1
src/Language/PureScript/Pretty/Cpp.hs+1
@@ -408,6 +408,7 @@ encodeChar '\v' = "\\v"
408408encodeChar '\f' = "\\f"
409409encodeChar '\r' = "\\r"
410410encodeChar '"' = "\\\""
411+encodeChar '\'' = "\\'"
411412encodeChar '\\' = "\\\\"
412413encodeChar c = T.singleton c
413414