git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Disallow Javascript keywords as identifiers
5cf8fbfPhil Freeman
src/PureScript/Parser/Common.hs+18−1
@@ -45,7 +45,24 @@ reservedNames = [ "case"
45 , "forall"
45 , "forall"
46 , "do"
46 , "do"
47 , "until"
47 , "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" ]
49
66
50reservedOpNames :: [String]
67reservedOpNames :: [String]
51reservedOpNames = [ "!", "~", "-", "<=", ">=", "<", ">", "*", "/", "%", "++", "+", "<<", ">>>", ">>"
68reservedOpNames = [ "!", "~", "-", "<=", ">=", "<", ">", "*", "/", "%", "++", "+", "<<", ">>>", ">>"