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/inputs/loops.yue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'spec/inputs') diff --git a/spec/inputs/loops.yue b/spec/inputs/loops.yue index 9a91b42..5df10ca 100644 --- a/spec/inputs/loops.yue +++ b/spec/inputs/loops.yue @@ -251,4 +251,17 @@ do if value > 5 item - +do + repeat print 1 until true + + x = repeat + a = func! + break a.x + until a.v + + items = repeat + item = getItem! + break unless item + item if item.value > 0 + until false + -- cgit v1.2.3-55-g6feb