aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/tables.yue25
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/inputs/tables.yue b/spec/inputs/tables.yue
index 4cd9b4d..649c1dc 100644
--- a/spec/inputs/tables.yue
+++ b/spec/inputs/tables.yue
@@ -237,5 +237,30 @@ menus =
237 click: -> 237 click: ->
238 } 238 }
239 239
240tb = {...other}
241
242tbMix = {
243 1, 2, 3
244 ... with item
245 .x = 1
246 \func!
247 "a", "b", "c"
248 ...func?!
249 key: "value"
250 ... -- perform the Lua table behavior here
251}
252
253tbMixA = {
254 ...[i for i = 1, 10]
255 11
256}
257
258tbMixB = {
259 ... ... -- only the first item in vararg been accessed here
260 ... {...}
261 ... {......}
262 1, 2, 3
263}
264
240nil 265nil
241 266