aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-05-23 12:22:21 +0800
committerLi Jin <dragon-fly@qq.com>2025-05-23 12:22:21 +0800
commitcf0a0f37bf07eb8e9435febe96e3adfe45004f91 (patch)
tree480cb978564d77ac088a505704e7df34863e8cb7 /spec/inputs
parent7bf2832d653027932fd845ba1462dd385ac32ab8 (diff)
downloadyuescript-cf0a0f37bf07eb8e9435febe96e3adfe45004f91.tar.gz
yuescript-cf0a0f37bf07eb8e9435febe96e3adfe45004f91.tar.bz2
yuescript-cf0a0f37bf07eb8e9435febe96e3adfe45004f91.zip
Added break with value to with syntax.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/with.yue9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/inputs/with.yue b/spec/inputs/with.yue
index 19b7be1..3fee48e 100644
--- a/spec/inputs/with.yue
+++ b/spec/inputs/with.yue
@@ -152,4 +152,13 @@ do
152 return with {} 152 return with {}
153 return [123] 153 return [123]
154 154
155do
156 f with item
157 if .id > 0
158 break .content
159
160 a = with tb
161 if .v
162 break .a
163
155nil 164nil