aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-05-26 15:52:07 +0800
committerLi Jin <dragon-fly@qq.com>2025-05-26 15:52:07 +0800
commita9d28cb615d2bdc09d2482d5262951f2afc8d6e1 (patch)
tree0567dd183518ce5df596875b8267215ecf5a25ce /spec/inputs
parent4f301523563e80e838490cc6216a16bb3b8d6122 (diff)
downloadyuescript-a9d28cb615d2bdc09d2482d5262951f2afc8d6e1.tar.gz
yuescript-a9d28cb615d2bdc09d2482d5262951f2afc8d6e1.tar.bz2
yuescript-a9d28cb615d2bdc09d2482d5262951f2afc8d6e1.zip
Added doc for `with?` syntax.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/with.yue5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/inputs/with.yue b/spec/inputs/with.yue
index c1cf3e3..2256833 100644
--- a/spec/inputs/with.yue
+++ b/spec/inputs/with.yue
@@ -165,4 +165,9 @@ do
165 break with? tb 165 break with? tb
166 break 1 166 break 1
167 167
168do
169 a = for i = 1, 100
170 with? x := tb[i]
171 break x if .id := 1
172
168nil 173nil