From 5b656d2913e4f9f0017698ec835ce4ddda1dc81f Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 18 Sep 2020 17:24:03 +0800 Subject: support inserting common expression item started with * symbol into a table block. --- spec/inputs/tables.moon | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'spec/inputs') diff --git a/spec/inputs/tables.moon b/spec/inputs/tables.moon index 6375660..e816003 100644 --- a/spec/inputs/tables.moon +++ b/spec/inputs/tables.moon @@ -180,5 +180,28 @@ heroine = * attribute: "mana" value: 100 +inventory = + equipment: + * "sword" + * "shield" + items: + * name: "potion" + count: 10 + * name: "bread" + count: 3 + +items = + * func! + * with tb + .abc = 123 + * {1, 2, 3} + * f {1, 2, 3} + * f + * 1 + * 2 + * 3 + * [i for i = 1, 3] + * "#{if a then b}" + nil -- cgit v1.2.3-55-g6feb