on master help sign in
javascript: fix & in names
commitb458c70e86eb74f6215c05978b196bb829ca425f authorraichoo <raichoo@googlemail.com> dateTue 15 Jan 2013, 19:18 (14 years ago) parentc79e46c
1 file changed+1
src/IRTS/CodegenJavaScript.hs+1
src/IRTS/CodegenJavaScript.hs+1
@@ -130,6 +130,7 @@ translateIdentifier =
130130 replaceBadChars '>' = "__gt__"
131131 replaceBadChars '=' = "__eq__"
132132 replaceBadChars '|' = "__pipe__"
133+ replaceBadChars '&' = "__amp__"
133134 replaceBadChars '\'' = "__apo__"
134135 replaceBadChars c
135136 | isDigit c = "__" ++ [c] ++ "__"