aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/unicode/using.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-08-17 10:36:15 +0800
committerLi Jin <dragon-fly@qq.com>2023-08-17 10:36:15 +0800
commite61cce21ef7def2c2e52dd6cb6a5b540ebcac29d (patch)
tree6e7c5e7e6f13157e9f8db26c38f6d8cba75683e5 /spec/inputs/unicode/using.yue
parent289faf45ac26f7e0ac1a1e4305e5c42fc1e5b866 (diff)
downloadyuescript-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/using.yue')
-rw-r--r--spec/inputs/unicode/using.yue29
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/inputs/unicode/using.yue b/spec/inputs/unicode/using.yue
new file mode 100644
index 0000000..c700b47
--- /dev/null
+++ b/spec/inputs/unicode/using.yue
@@ -0,0 +1,29 @@
1
2你好 = "你好"
3世界 = "世界"
4
5_ = (using nil) ->
6 你好 = 3223
7
8_ = (参数a using nil) ->
9 你好 = 3223
10 参数a = 323
11
12_ = (参数a,参数b,参数c using 参数a,参数b,参数c) ->
13 参数a,参数b,参数c = 1,2,3
14 世界 = 12321
15
16_ = (参数a,参数e,参数f using 参数a,参数b,参数c, 你好) ->
17 参数a,参数b,参数c = 1,2,3
18 你好 = 12321
19 世界 = "yeah"
20
21_ = (using nil) ->
22 你好 or= 2
23
24do
25 变量a = {}
26 (using nil) <- _
27 {元素x, 元素y} = 变量a
28
29nil