From a9d28cb615d2bdc09d2482d5262951f2afc8d6e1 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 26 May 2025 15:52:07 +0800 Subject: Added doc for `with?` syntax. --- spec/inputs/with.yue | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/inputs/with.yue') 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 break with? tb break 1 +do + a = for i = 1, 100 + with? x := tb[i] + break x if .id := 1 + nil -- cgit v1.2.3-55-g6feb