aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/return.yue13
-rw-r--r--spec/inputs/tables.yue23
2 files changed, 36 insertions, 0 deletions
diff --git a/spec/inputs/return.yue b/spec/inputs/return.yue
index f170ffd..96fa0cd 100644
--- a/spec/inputs/return.yue
+++ b/spec/inputs/return.yue
@@ -49,6 +49,19 @@ do
49 else 49 else
50 b 50 b
51 51
52do
53 return
54 :value
55 itemA: 123
56 itemB: "abc"
57
58do
59 return
60 * 1
61 * 2
62 * ...three
63 * 4
64
52_ = -> a\b 65_ = -> a\b
53do a\b 66do a\b
54 67
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
284parts =
285 * "shoulders"
286 * "knees"
287
288lyrics =
289 * "head"
290 * ...parts
291 * "and"
292 * "toes"
293
294tbBlock =
295 sub:
296 :value
297 * ...items
298 * ...
299
300func
301 * ...items
302 :value
303 * ...
304 k: v
305 * ...
306
284nil 307nil
285 308