summaryrefslogtreecommitdiff
path: root/spec/outputs/unicode/using.lua
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/outputs/unicode/using.lua
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/outputs/unicode/using.lua')
-rw-r--r--spec/outputs/unicode/using.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/outputs/unicode/using.lua b/spec/outputs/unicode/using.lua
new file mode 100644
index 0000000..8b6bd1c
--- /dev/null
+++ b/spec/outputs/unicode/using.lua
@@ -0,0 +1,30 @@
1local _u4f60_u597d = "你好"
2local _u4e16_u754c = "世界"
3local _
4_ = function()
5 local _u4f60_u597d = 3223
6end
7_ = function(_u53c2_u6570a)
8 local _u4f60_u597d = 3223
9 _u53c2_u6570a = 323
10end
11_ = function(_u53c2_u6570a, _u53c2_u6570b, _u53c2_u6570c)
12 _u53c2_u6570a, _u53c2_u6570b, _u53c2_u6570c = 1, 2, 3
13 local _u4e16_u754c = 12321
14end
15_ = function(_u53c2_u6570a, _u53c2_u6570e, _u53c2_u6570f)
16 local _u53c2_u6570b, _u53c2_u6570c
17 _u53c2_u6570a, _u53c2_u6570b, _u53c2_u6570c = 1, 2, 3
18 local _u4f60_u597d = 12321
19 local _u4e16_u754c = "yeah"
20end
21_ = function()
22 local _u4f60_u597d = _u4f60_u597d or 2
23end
24do
25 local _u53d8_u91cfa = { }
26 _(function()
27 local _u5143_u7d20x, _u5143_u7d20y = _u53d8_u91cfa[1], _u53d8_u91cfa[2]
28 end)
29end
30return nil