From 5ad0f4daa8171460dc71332669c365bb8e07dab0 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 2 Nov 2023 12:27:27 +0800 Subject: fix table matching syntax in switch statement with list table. --- spec/inputs/switch.yue | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/inputs') diff --git a/spec/inputs/switch.yue b/spec/inputs/switch.yue index cb1eb31..49d47f3 100644 --- a/spec/inputs/switch.yue +++ b/spec/inputs/switch.yue @@ -159,5 +159,11 @@ do when {x: <>: mt} print mt +do + switch tb + when [ [item,],] + print item + when [a = 1, b = "abc"] + print a, b nil -- cgit v1.2.3-55-g6feb