diff options
author | Li Jin <dragon-fly@qq.com> | 2023-08-17 10:36:15 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-08-17 10:36:15 +0800 |
commit | e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d (patch) | |
tree | 6e7c5e7e6f13157e9f8db26c38f6d8cba75683e5 /spec/inputs/unicode/bubbling.yue | |
parent | 289faf45ac26f7e0ac1a1e4305e5c42fc1e5b866 (diff) | |
download | yuescript-e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d.tar.gz yuescript-e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d.tar.bz2 yuescript-e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d.zip |
add unicode identifier support, fix more issue from #144
Diffstat (limited to 'spec/inputs/unicode/bubbling.yue')
-rw-r--r-- | spec/inputs/unicode/bubbling.yue | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/inputs/unicode/bubbling.yue b/spec/inputs/unicode/bubbling.yue new file mode 100644 index 0000000..824263a --- /dev/null +++ b/spec/inputs/unicode/bubbling.yue | |||
@@ -0,0 +1,27 @@ | |||
1 | |||
2 | -- vararg bubbling | ||
3 | 函数 = (...) -> #{...} | ||
4 | |||
5 | 不要冒泡 = -> | ||
6 | [元素 for 元素 in ((...)-> 打印 ...)("你好")] | ||
7 | |||
8 | 变量k = [元素 for 元素 in ((...)-> 打印 ...)("你好")] | ||
9 | |||
10 | 变量j = for 计数 = 1, 10 | ||
11 | (...) -> 打印 ... | ||
12 | |||
13 | -- bubble me | ||
14 | |||
15 | 变量m = (...) -> | ||
16 | [元素 for 元素 in *{...} when 函数(...) > 4] | ||
17 | |||
18 | _无效变量 = (...)-> | ||
19 | 数组x = for 计数 in *{...} do 计数 | ||
20 | 数组y = [元素 for 元素 in *{...}] | ||
21 | 数组z = [元素 for 元素 in 列表 when 函数(...) > 4] | ||
22 | |||
23 | 数组a = for 计数 = 1, 10 do ... | ||
24 | |||
25 | 数组b = for 计数 = 1, 10 | ||
26 | (...)-> 打印 ... | ||
27 | |||