From cf0a0f37bf07eb8e9435febe96e3adfe45004f91 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 23 May 2025 12:22:21 +0800 Subject: Added break with value to with syntax. --- spec/inputs/with.yue | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'spec/inputs') 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 return with {} return [123] +do + f with item + if .id > 0 + break .content + + a = with tb + if .v + break .a + nil -- cgit v1.2.3-55-g6feb