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/using.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 spec/outputs/unicode/using.lua (limited to 'spec/outputs/unicode/using.lua') 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 @@ +local _u4f60_u597d = "你好" +local _u4e16_u754c = "世界" +local _ +_ = function() + local _u4f60_u597d = 3223 +end +_ = function(_u53c2_u6570a) + local _u4f60_u597d = 3223 + _u53c2_u6570a = 323 +end +_ = function(_u53c2_u6570a, _u53c2_u6570b, _u53c2_u6570c) + _u53c2_u6570a, _u53c2_u6570b, _u53c2_u6570c = 1, 2, 3 + local _u4e16_u754c = 12321 +end +_ = function(_u53c2_u6570a, _u53c2_u6570e, _u53c2_u6570f) + local _u53c2_u6570b, _u53c2_u6570c + _u53c2_u6570a, _u53c2_u6570b, _u53c2_u6570c = 1, 2, 3 + local _u4f60_u597d = 12321 + local _u4e16_u754c = "yeah" +end +_ = function() + local _u4f60_u597d = _u4f60_u597d or 2 +end +do + local _u53d8_u91cfa = { } + _(function() + local _u5143_u7d20x, _u5143_u7d20y = _u53d8_u91cfa[1], _u53d8_u91cfa[2] + end) +end +return nil -- cgit v1.2.3-55-g6feb