فهرست منبع

[lua] Give proper ordering for _hx_continue and break handling

Justin Donaldson 9 سال پیش
والد
کامیت
3865aad811
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/generators/genlua.ml

+ 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