From f48e99462a9fac6b4e5ad1b823b78d263025970c Mon Sep 17 00:00:00 2001 From: Li Jin Date: Sat, 5 Mar 2022 13:10:12 +0800 Subject: fix issue #82. --- spec/outputs/loops.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'spec') diff --git a/spec/outputs/loops.lua b/spec/outputs/loops.lua index a905e4e..aa69840 100644 --- a/spec/outputs/loops.lua +++ b/spec/outputs/loops.lua @@ -171,11 +171,13 @@ for i = 1, 10 do while true do local _continue_0 = false repeat - if not true then - _continue_0 = true + do + if not true then + _continue_0 = true + break + end break end - break _continue_0 = true until true if not _continue_0 then @@ -313,11 +315,13 @@ end while true do local _continue_0 = false repeat - if false then - _continue_0 = true + do + if false then + _continue_0 = true + break + end break end - break _continue_0 = true until true if not _continue_0 then -- cgit v1.2.3-55-g6feb