From 87267ca9e93606b70bdc0397349b176b8d142514 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Tue, 27 May 2025 11:26:15 +0800 Subject: Updated `repeat` syntax functions. --- spec/outputs/with.lua | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'spec/outputs/with.lua') diff --git a/spec/outputs/with.lua b/spec/outputs/with.lua index 338d51f..530915e 100644 --- a/spec/outputs/with.lua +++ b/spec/outputs/with.lua @@ -192,12 +192,12 @@ do local _with_0 = item do local _accum_0 - while true do + repeat if _with_0.id > 0 then _accum_0 = _with_0.content break end - end + until true _with_0 = _accum_0 end return _with_0 @@ -207,12 +207,12 @@ do local _with_0 = tb do local _accum_0 - while true do + repeat if _with_0.v then _accum_0 = _with_0.a break end - end + until true _with_0 = _accum_0 end a = _with_0 @@ -221,13 +221,12 @@ do while true do local _with_0 = tb local _accum_1 - while true do + repeat if _with_0 ~= nil then _accum_1 = 1 break end - break - end + until true _with_0 = _accum_1 _accum_0 = _with_0 break -- cgit v1.2.3-55-g6feb