Browse Source

Lua : "while" needs a newline

That's all.
Justin Donaldson 10 years ago
parent
commit
af5eca3d60
1 changed files with 1 additions and 0 deletions
  1. 1 0
      genlua.ml

+ 1 - 0
genlua.ml

@@ -570,6 +570,7 @@ and gen_expr ctx e =
 		spr ctx " do ";
 		spr ctx " do ";
 		gen_expr ctx e;
 		gen_expr ctx e;
 		handle_break();
 		handle_break();
+		newline ctx;
 		spr ctx "end ";
 		spr ctx "end ";
 	| TWhile (cond,e,Ast.DoWhile) ->
 	| TWhile (cond,e,Ast.DoWhile) ->
 		let handle_break = handle_break ctx e in
 		let handle_break = handle_break ctx e in