aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-09-11 14:55:22 +0800
committerLi Jin <dragon-fly@qq.com>2020-09-11 14:55:22 +0800
commitdfd4e3b2b2abc0137d26ed3df303a398741bb6a0 (patch)
tree59a1690ad02d56d3f303f6ac1dea9e5d6cdc8f20 /spec
parenteba73a696c65932534fd5aefbe2ca4c7260c0fb6 (diff)
downloadyuescript-dfd4e3b2b2abc0137d26ed3df303a398741bb6a0.tar.gz
yuescript-dfd4e3b2b2abc0137d26ed3df303a398741bb6a0.tar.bz2
yuescript-dfd4e3b2b2abc0137d26ed3df303a398741bb6a0.zip
add implicit objects support while writing tables.
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/tables.moon20
1 files changed, 20 insertions, 0 deletions
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" }
159 159
160j = "one", "two": three, "four": five, 6, 7 160j = "one", "two": three, "four": five, 6, 7
161 161
162heroine =
163 name: "Christina"
164 age: 18
165 job: "Princess"
166 likes:
167 # name: "kittens"
168 img: "/image/kittens.png"
169 # name: "flower"
170 img: "/image/flower.png"
171 items:
172 # name: "ring"
173 amount: 2
174 # name: "necklace"
175 amount: 1
176 status:
177 desc: "weak"
178 # attribute: "health"
179 value: 50
180 # attribute: "mana"
181 value: 100
162 182
163nil 183nil