ソースを参照

removed "label" and "each" keywords (tested that they are allowed in locals and fields accesses) - fixed issue #1119

Nicolas Cannasse 13 年 前
コミット
65186b901c
1 ファイル変更3 行追加1 行削除
  1. 3 1
      genas3.ml

+ 3 - 1
genas3.ml

@@ -103,7 +103,7 @@ let reserved =
 	(* these ones are defined in order to prevent recursion in some Std functions *)
 	["is";"as";"int";"uint";"const";"getTimer";"typeof";"parseInt";"parseFloat";
 	(* AS3 keywords which are not Haxe ones *)
-	"each";"label";"finally";"with";"final";"internal";"native";"const";"namespace";"include";"delete";
+	"finally";"with";"final";"internal";"native";"namespace";"include";"delete";
 	(* some globals give some errors with Flex SDK as well *)
 	"print";"trace";
 	(* we don't include get+set since they are not 'real' keywords, but they can't be used as method names *)
@@ -113,6 +113,8 @@ let reserved =
 	];
 	h
 
+	(* "each", "label" : removed (actually allowed in locals and fields accesses) *)
+
 let s_ident n =
 	if Hashtbl.mem reserved n then "_" ^ n else n