2
0
Эх сурвалжийг харах

[lua] Give proper ordering for _hx_continue and break handling

Justin Donaldson 9 жил өмнө
parent
commit
3865aad811

+ 2 - 1
src/generators/genlua.ml

@@ -675,12 +675,13 @@ and gen_expr ?(local=true) ctx e = begin
 		let b = open_block ctx in
 		gen_block_element ctx e;
 		b();
-		handle_break();
 		if has_continue e then begin
 		    newline ctx;
 		    spr ctx "::_hx_continue::";
 		end;
 		newline ctx;
+		handle_break();
+		newline ctx;
 		spr ctx "end";
 	| TWhile (cond,e,Ast.DoWhile) ->
 		let handle_break = handle_break ctx e in