From 018b9408f167067c596fc23781bc945edb9f4d89 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 5 Feb 2024 11:24:41 +0800 Subject: fix in-expression format issue. --- spec/inputs/in_expression.yue | 1 - spec/inputs/unicode/in_expression.yue | 39 +++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) (limited to 'spec/inputs') diff --git a/spec/inputs/in_expression.yue b/spec/inputs/in_expression.yue index 7ee0816..0b2a87a 100644 --- a/spec/inputs/in_expression.yue +++ b/spec/inputs/in_expression.yue @@ -1,5 +1,4 @@ -a^2 in {1, 2, 3} |> f --a^2 in [1, 2, 3] |> f has = "foo" in { "bar", "foo" } diff --git a/spec/inputs/unicode/in_expression.yue b/spec/inputs/unicode/in_expression.yue index e068cbf..4a87099 100644 --- a/spec/inputs/unicode/in_expression.yue +++ b/spec/inputs/unicode/in_expression.yue @@ -29,5 +29,44 @@ do 检查 -> return 对象x in 数组tb 检查 -> 对象x not in 数组tb +do + 函数1 = -> + 变量a = 2 + 变量a in [ + 1 + 2 + 3 + 4 + ] + 函数2 = -> + 变量a not in [ + 1 + 2 + 3 + 4 + ] + 函数3 = -> + 变量a = 2 + 变量a in { 变量b, 变量c, 变量d + 变量e, 变量f + 变量g + } + 函数4 = -> + 变量a = 2 + 变量b = a in [ 1, 2 + 3, 4 + ] + 函数5 = -> + a变量 = 2 + return a变量 in [ 1, 2 + 3, 4 + ] + 函数6 = -> + b变量 = a变量 not in { + 1 + 2 + 字段x: 3 + } + nil -- cgit v1.2.3-55-g6feb