From dfd4e3b2b2abc0137d26ed3df303a398741bb6a0 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 11 Sep 2020 14:55:22 +0800 Subject: add implicit objects support while writing tables. --- spec/inputs/tables.moon | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'spec') diff --git a/spec/inputs/tables.moon b/spec/inputs/tables.moon index 9383538..a1e861b 100644 --- a/spec/inputs/tables.moon +++ b/spec/inputs/tables.moon @@ -159,5 +159,25 @@ f = { "one", "two": three, "four" } j = "one", "two": three, "four": five, 6, 7 +heroine = + name: "Christina" + age: 18 + job: "Princess" + likes: + # name: "kittens" + img: "/image/kittens.png" + # name: "flower" + img: "/image/flower.png" + items: + # name: "ring" + amount: 2 + # name: "necklace" + amount: 1 + status: + desc: "weak" + # attribute: "health" + value: 50 + # attribute: "mana" + value: 100 nil -- cgit v1.2.3-55-g6feb