Browse Source

add list to keywords

frabbit 11 years ago
parent
commit
166b4e2710
2 changed files with 2 additions and 2 deletions
  1. 1 1
      genpy.ml
  2. 1 1
      std/python/internal/KeywordHandler.hx

+ 1 - 1
genpy.ml

@@ -8,7 +8,7 @@ module KeywordHandler = struct
 		List.iter (fun s -> Hashtbl.add h s ()) [
 			"and"; "as"; "assert"; "break"; "class"; "continue"; "def"; "del"; "elif"; "else"; "except"; "exec"; "finally"; "for";
 			"from"; "global"; "if"; "import"; "in"; "is"; "lambda"; "not"; "or"; "pass"; "print";" raise"; "return"; "try"; "while";
-			"with"; "yield"; "float"; "None"
+			"with"; "yield"; "float"; "None"; "list"
 			;"__b" (* TODO: hack to deal with haxe.Utf8 error *)
 		];
 		h

+ 1 - 1
std/python/internal/KeywordHandler.hx

@@ -16,7 +16,7 @@ class KeywordHandler {
 		"break" => true,     "except" => true,    "import" => true,    "print" => true,		"float" => true,
 		"class" => true,     "exec" => true,      "in" => true,        "raise" => true,
 		"continue" => true,  "finally" => true,   "is" => true,        "return" => true,
-		"def" => true,       "for" => true,       "lambda" => true,    "try" => true, "None" => true
+		"def" => true,       "for" => true,       "lambda" => true,    "try" => true, "None" => true, "list" => true
 	];
 
 	public static inline function handleKeywords(name:String)