git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Disallow Javascript keywords as identifiers
commit5cf8fbf0fd850629e6ab41580ed1754d218e430f authorPhil Freeman <paf31@cantab.net> dateSun 20 Oct 2013, 17:35 (13 years ago) parent446c911
1 file changed+18−1
src/PureScript/Parser/Common.hs+18−1
src/PureScript/Parser/Common.hs+18−1
@@ -45,7 +45,24 @@ reservedNames = [ "case"
4545 , "forall"
4646 , "do"
4747 , "until"
48− , "in" ]
48+ , "in"
49+ , "break"
50+ , "catch"
51+ , "continue"
52+ , "debugger"
53+ , "default"
54+ , "delete"
55+ , "finally"
56+ , "function"
57+ , "instanceof"
58+ , "new"
59+ , "switch"
60+ , "this"
61+ , "throw"
62+ , "try"
63+ , "typeof"
64+ , "void"
65+ , "with" ]
4966
5067reservedOpNames :: [String]
5168reservedOpNames = [ "!", "~", "-", "<=", ">=", "<", ">", "*", "/", "%", "++", "+", "<<", ">>>", ">>"