summaryrefslogtreecommitdiff
path: root/spec/inputs/funcs.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-11-21 12:21:04 +0800
committerLi Jin <dragon-fly@qq.com>2025-11-21 12:21:04 +0800
commit43dde2fff316051d03968e8efd313f19b53112fc (patch)
treeae3f99ce6edcd397b75002003048518ee33bae5b /spec/inputs/funcs.yue
parentb462de9d09d4708490161c7c16858bce2c9cb9b6 (diff)
downloadyuescript-0.29.9.tar.gz
yuescript-0.29.9.tar.bz2
yuescript-0.29.9.zip
Updated syntax.v0.29.9
* Added error check for mixed use of tabs and spaces. * Supported SimpleTable destructuring for ForEach syntax.
Diffstat (limited to '')
-rw-r--r--spec/inputs/funcs.yue4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/inputs/funcs.yue b/spec/inputs/funcs.yue
index 6b1669b..d19c2d1 100644
--- a/spec/inputs/funcs.yue
+++ b/spec/inputs/funcs.yue
@@ -98,7 +98,7 @@ f(
98 98
99x = (a, 99x = (a,
100 b) -> 100 b) ->
101 print "what" 101 print "what"
102 102
103 103
104y = (a="hi", 104y = (a="hi",
@@ -211,7 +211,7 @@ do
211 print "kv:", k, v 211 print "kv:", k, v
212 print "rest count:", select "#", ... 212 print "rest count:", select "#", ...
213 macro gen = (fname) -> | 213 macro gen = (fname) -> |
214 #{fname} = ({:a, :b = 0}) -> print a, b 214 #{fname} = ({:a, :b = 0}) -> print a, b
215 $gen foo 215 $gen foo
216 t1 = (:a, x) -> print a, x 216 t1 = (:a, x) -> print a, x
217 t2 = (:a) -> print a 217 t2 = (:a) -> print a