diff options
author | Li Jin <dragon-fly@qq.com> | 2022-04-25 13:19:26 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-04-25 13:19:45 +0800 |
commit | 10afeaf30bfe03774c12908235520eebf0c192ee (patch) | |
tree | ca266b04aaea63ea0710a51708d6ef806008b34e /spec/inputs/tables.yue | |
parent | 249e1de1d32dda2b60b9116c5a4e538475de0192 (diff) | |
download | yuescript-10afeaf30bfe03774c12908235520eebf0c192ee.tar.gz yuescript-10afeaf30bfe03774c12908235520eebf0c192ee.tar.bz2 yuescript-10afeaf30bfe03774c12908235520eebf0c192ee.zip |
add spread syntax support for table block. fix a gcc compiler issue. update doc.
Diffstat (limited to 'spec/inputs/tables.yue')
-rw-r--r-- | spec/inputs/tables.yue | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/inputs/tables.yue b/spec/inputs/tables.yue index 3a245a7..e1b9e1d 100644 --- a/spec/inputs/tables.yue +++ b/spec/inputs/tables.yue | |||
@@ -281,5 +281,28 @@ specializedB = { | |||
281 | else: false | 281 | else: false |
282 | } | 282 | } |
283 | 283 | ||
284 | parts = | ||
285 | * "shoulders" | ||
286 | * "knees" | ||
287 | |||
288 | lyrics = | ||
289 | * "head" | ||
290 | * ...parts | ||
291 | * "and" | ||
292 | * "toes" | ||
293 | |||
294 | tbBlock = | ||
295 | sub: | ||
296 | :value | ||
297 | * ...items | ||
298 | * ... | ||
299 | |||
300 | func | ||
301 | * ...items | ||
302 | :value | ||
303 | * ... | ||
304 | k: v | ||
305 | * ... | ||
306 | |||
284 | nil | 307 | nil |
285 | 308 | ||