소스 검색

[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