From 43dde2fff316051d03968e8efd313f19b53112fc Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 21 Nov 2025 12:21:04 +0800 Subject: Updated syntax. * Added error check for mixed use of tabs and spaces. * Supported SimpleTable destructuring for ForEach syntax. --- spec/inputs/unicode/funcs.yue | 2 +- spec/inputs/unicode/vararg.yue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/inputs/unicode') diff --git a/spec/inputs/unicode/funcs.yue b/spec/inputs/unicode/funcs.yue index c563356..cb35500 100644 --- a/spec/inputs/unicode/funcs.yue +++ b/spec/inputs/unicode/funcs.yue @@ -98,7 +98,7 @@ _无效变量 = -> 真名 if 某物 变量x = (参数a, 参数b) -> - 打印 "什么" + 打印 "什么" 变量y = (参数a="hi", diff --git a/spec/inputs/unicode/vararg.yue b/spec/inputs/unicode/vararg.yue index e59e114..b508fbb 100644 --- a/spec/inputs/unicode/vararg.yue +++ b/spec/inputs/unicode/vararg.yue @@ -55,12 +55,12 @@ _ = -> 列表 = {1, 2, 3, 4, 5} 函数名 = (确定) -> - 确定, table.unpack 列表 + 确定, table.unpack 列表 确定, ... = 函数名 true 打印 确定, ... 多参数函数 = -> - 10, nil, 20, nil, 30 + 10, nil, 20, nil, 30 ... = 多参数函数! 打印 select "#", ... -- cgit v1.2.3-55-g6feb