From 4ba4c90e711c6204aa40e38347c5a5a076d9370e Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 23 May 2025 15:07:45 +0800 Subject: Added `-` for implicit object. --- spec/inputs/tables.yue | 18 ++++++++++++++++++ spec/inputs/with.yue | 4 ++++ 2 files changed, 22 insertions(+) (limited to 'spec/inputs') diff --git a/spec/inputs/tables.yue b/spec/inputs/tables.yue index 0de8a8c..702e04a 100644 --- a/spec/inputs/tables.yue +++ b/spec/inputs/tables.yue @@ -245,6 +245,24 @@ menus = click: -> } +_ = + boolean: + - true + - false + float: + - 3.14 + - -6.8523015e+5 + int: + - 123 + - -0b1010_0111_0100_1010_1110 + null: + nodeName: 'node' + parent: nil + string: + - 'Hello world' + - "newline +newline2" + tb = {...other} tbMix = { diff --git a/spec/inputs/with.yue b/spec/inputs/with.yue index 3fee48e..dcd4053 100644 --- a/spec/inputs/with.yue +++ b/spec/inputs/with.yue @@ -161,4 +161,8 @@ do if .v break .a + a = while true + break with? tb + break 1 + nil -- cgit v1.2.3-55-g6feb