aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/unicode/operators.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/operators.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/operators.lua')
-rw-r--r--spec/outputs/unicode/operators.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/outputs/unicode/operators.lua b/spec/outputs/unicode/operators.lua
new file mode 100644
index 0000000..c515dd1
--- /dev/null
+++ b/spec/outputs/unicode/operators.lua
@@ -0,0 +1,29 @@
1local _u6570_u5b57x = 1 + 3
2local _u6570_u5b57y = 1 + 3
3local _u6570_u5b57z = 1 + 3 + 4
4local _u6570_u5b57k = _u53d8_u91cfb and _u53d8_u91cfc and _u53d8_u91cfg
5local _u53d8_u91cfh = _u4e1c_u897f and function()
6 return _u6253_u5370("你好 世界")
7end
8local _u53d8_u91cfi = _u4e1c_u897f or function()
9 return _u6253_u5370("你好 世界")
10end
11local _u53d8_u91cfp = _u4e1c_u897f and function() end
12_u6253_u5370("你好 世界")
13local _u53d8_u91cfs = _u4e1c_u897f or function() end and 234
14local _u53d8_u91cfu = {
15 ["颜色"] = 1 and 2 and 3,
16 4,
17 4
18}
19local _u53d8_u91cfv = {
20 ["颜色"] = 1 and function()
21 return "yeah"
22 end,
23 "great",
24 ["好的"] = 3 ^ 2
25}
26local _u53d8_u91cfnno = (_u662f_u7684 + 2)
27local _u53d8_u91cfnn = (_u662f_u7684 + 2)
28local _u53d8_u91cfn = _u4f60_u597d(_u53d8_u91cfb)(function() end)
29return _u4f60_u597d(_u53d8_u91cfa, (_u662f_u7684 + 2) - _u597d_u7684)