Selaa lähdekoodia

Lua : slim down number of reserved words

Justin Donaldson 9 vuotta sitten
vanhempi
commit
5159976ae4
1 muutettua tiedostoa jossa 4 lisäystä ja 8 poistoa
  1. 4 8
      genlua.ml

+ 4 - 8
genlua.ml

@@ -72,14 +72,10 @@ let debug_type t  =
 let kwds =
 	let h = Hashtbl.create 0 in
 	List.iter (fun s -> Hashtbl.add h s ()) [
-		""; "abstract"; "as"; "boolean"; "break"; "byte"; "case"; "catch"; "char"; "class"; "continue"; "const";
-		"debugger"; "default"; "delete"; "do"; "double"; "else"; "enum"; "export"; "extends"; "false"; "final";
-		"finally"; "float"; "for"; "function"; "goto"; "if"; "implements"; "import"; "in"; "instanceof"; "int";
-		"interface"; "is"; "let"; "long"; "namespace"; "native"; "new"; "nil"; "package"; "private"; "protected";
-		"public"; "return"; "short"; "static"; "super"; "switch"; "synchronized"; "this"; "throw"; "throws";
-		"transient"; "true"; "try"; "typeof"; "use"; "var"; "void"; "volatile"; "while"; "with"; "yield";
-		(* Lua keywords *)
-		"and"; "elseif"; "end"; "local"; "not"; "or"; "repeat"; "then"; "until"; "_G"; "self"
+	    ""; "and"; "break"; "do"; "else"; "elseif";
+	    "end"; "false"; "for"; "function"; "if";
+	    "in"; "local"; "nil"; "not"; "or"; "repeat";
+	    "return"; "then"; "true"; "until"; "while";
 	];
 	h