浏览代码

[lua] fix missing end expression

Justin Donaldson 9 年之前
父节点
当前提交
c262f4e9b9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/generators/genlua.ml

+ 2 - 1
src/generators/genlua.ml

@@ -1935,10 +1935,11 @@ let generate com =
 	if has_feature ctx "use._hx_print" then
 	if has_feature ctx "use._hx_print" then
 	    println ctx "_hx_print = print or (function() end)";
 	    println ctx "_hx_print = print or (function() end)";
 
 
-	if has_feature ctx "use._hx_apply_self" then
+	if has_feature ctx "use._hx_apply_self" then begin
 	    println ctx "_hx_apply_self = function(self, f, ...)";
 	    println ctx "_hx_apply_self = function(self, f, ...)";
 	    println ctx "  return self[f](self,...)";
 	    println ctx "  return self[f](self,...)";
 	    println ctx "end";
 	    println ctx "end";
+	end;
 
 
 
 
 	List.iter (generate_enumMeta_fields ctx) com.types;
 	List.iter (generate_enumMeta_fields ctx) com.types;