Ver código fonte

Lua: add newline and cleanup generated enum output

Justin Donaldson 9 anos atrás
pai
commit
f85ba1d98c
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      genlua.ml

+ 1 - 0
genlua.ml

@@ -1498,6 +1498,7 @@ let generate_enum ctx e =
 	    end;
 	    print ctx " __constructs__ = {%s} }" (String.concat "," (List.map (fun s -> Printf.sprintf "\"%s\"" s) e.e_names));
 	    ctx.separator <- true;
+	    newline ctx;
 	end;
 
 	if has_feature ctx "Type.resolveEnum" || has_feature ctx "lua.Boot.isEnum" then