aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/switch.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2026-02-24 12:24:10 +0800
committerLi Jin <dragon-fly@qq.com>2026-02-24 12:24:10 +0800
commit0ccf4408271c8a0d147e3cf25689810862e8c1db (patch)
tree0316978c886bee79db8f77cfe4521518763be71c /spec/inputs/switch.yue
parentc2a34e380b7ff57b071f8081e1cac589eab664d3 (diff)
downloadyuescript-0ccf4408271c8a0d147e3cf25689810862e8c1db.tar.gz
yuescript-0ccf4408271c8a0d147e3cf25689810862e8c1db.tar.bz2
yuescript-0ccf4408271c8a0d147e3cf25689810862e8c1db.zip
Cleaned up and fixed more comment reserving codes.v0.33.4
Diffstat (limited to 'spec/inputs/switch.yue')
-rw-r--r--spec/inputs/switch.yue14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/inputs/switch.yue b/spec/inputs/switch.yue
index 2b0669c..b969a17 100644
--- a/spec/inputs/switch.yue
+++ b/spec/inputs/switch.yue
@@ -289,4 +289,18 @@ do
289 289
290 handlePath ["admin", "logs", "view"] 290 handlePath ["admin", "logs", "view"]
291 291
292do
293 _check_cond_expr = (iftyp, n, args) ->
294 sw = { ct: iftyp, op: op }
295 why = switch sw
296 -- woo
297 when ct: 'if', op: '=='
298 'never'
299 when ct: 'if', op: '!='
300 'always'
301 when ct: 'unless', op: '=='
302 'always'
303 when ct: 'unless', op: '!='
304 'never'
305
292nil 306nil