aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/with.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-05-27 11:26:15 +0800
committerLi Jin <dragon-fly@qq.com>2025-05-27 11:26:15 +0800
commit87267ca9e93606b70bdc0397349b176b8d142514 (patch)
tree1d24aded412cc9543cbe4c282401129f9fb3229a /spec/outputs/with.lua
parenta9d28cb615d2bdc09d2482d5262951f2afc8d6e1 (diff)
downloadyuescript-87267ca9e93606b70bdc0397349b176b8d142514.tar.gz
yuescript-87267ca9e93606b70bdc0397349b176b8d142514.tar.bz2
yuescript-87267ca9e93606b70bdc0397349b176b8d142514.zip
Updated `repeat` syntax functions.
Diffstat (limited to 'spec/outputs/with.lua')
-rw-r--r--spec/outputs/with.lua13
1 files changed, 6 insertions, 7 deletions
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
192 local _with_0 = item 192 local _with_0 = item
193 do 193 do
194 local _accum_0 194 local _accum_0
195 while true do 195 repeat
196 if _with_0.id > 0 then 196 if _with_0.id > 0 then
197 _accum_0 = _with_0.content 197 _accum_0 = _with_0.content
198 break 198 break
199 end 199 end
200 end 200 until true
201 _with_0 = _accum_0 201 _with_0 = _accum_0
202 end 202 end
203 return _with_0 203 return _with_0
@@ -207,12 +207,12 @@ do
207 local _with_0 = tb 207 local _with_0 = tb
208 do 208 do
209 local _accum_0 209 local _accum_0
210 while true do 210 repeat
211 if _with_0.v then 211 if _with_0.v then
212 _accum_0 = _with_0.a 212 _accum_0 = _with_0.a
213 break 213 break
214 end 214 end
215 end 215 until true
216 _with_0 = _accum_0 216 _with_0 = _accum_0
217 end 217 end
218 a = _with_0 218 a = _with_0
@@ -221,13 +221,12 @@ do
221 while true do 221 while true do
222 local _with_0 = tb 222 local _with_0 = tb
223 local _accum_1 223 local _accum_1
224 while true do 224 repeat
225 if _with_0 ~= nil then 225 if _with_0 ~= nil then
226 _accum_1 = 1 226 _accum_1 = 1
227 break 227 break
228 end 228 end
229 break 229 until true
230 end
231 _with_0 = _accum_1 230 _with_0 = _accum_1
232 _accum_0 = _with_0 231 _accum_0 = _with_0
233 break 232 break