From e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 17 Aug 2023 10:36:15 +0800 Subject: add unicode identifier support, fix more issue from #144 --- spec/outputs/unicode/operators.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 spec/outputs/unicode/operators.lua (limited to 'spec/outputs/unicode/operators.lua') 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 @@ +local _u6570_u5b57x = 1 + 3 +local _u6570_u5b57y = 1 + 3 +local _u6570_u5b57z = 1 + 3 + 4 +local _u6570_u5b57k = _u53d8_u91cfb and _u53d8_u91cfc and _u53d8_u91cfg +local _u53d8_u91cfh = _u4e1c_u897f and function() + return _u6253_u5370("你好 世界") +end +local _u53d8_u91cfi = _u4e1c_u897f or function() + return _u6253_u5370("你好 世界") +end +local _u53d8_u91cfp = _u4e1c_u897f and function() end +_u6253_u5370("你好 世界") +local _u53d8_u91cfs = _u4e1c_u897f or function() end and 234 +local _u53d8_u91cfu = { + ["颜色"] = 1 and 2 and 3, + 4, + 4 +} +local _u53d8_u91cfv = { + ["颜色"] = 1 and function() + return "yeah" + end, + "great", + ["好的"] = 3 ^ 2 +} +local _u53d8_u91cfnno = (_u662f_u7684 + 2) +local _u53d8_u91cfnn = (_u662f_u7684 + 2) +local _u53d8_u91cfn = _u4f60_u597d(_u53d8_u91cfb)(function() end) +return _u4f60_u597d(_u53d8_u91cfa, (_u662f_u7684 + 2) - _u597d_u7684) -- cgit v1.2.3-55-g6feb