diff options
| author | Li Jin <dragon-fly@qq.com> | 2023-08-17 10:36:15 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2023-08-17 10:36:15 +0800 |
| commit | e61cce21ef7def2c2e52dd6cb6a5b540ebcac29d (patch) | |
| tree | 6e7c5e7e6f13157e9f8db26c38f6d8cba75683e5 /spec/outputs/unicode/using.lua | |
| parent | 289faf45ac26f7e0ac1a1e4305e5c42fc1e5b866 (diff) | |
| download | yuescript-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.lua | 30 |
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 @@ | |||
| 1 | local _u4f60_u597d = "你好" | ||
| 2 | local _u4e16_u754c = "世界" | ||
| 3 | local _ | ||
| 4 | _ = function() | ||
| 5 | local _u4f60_u597d = 3223 | ||
| 6 | end | ||
| 7 | _ = function(_u53c2_u6570a) | ||
| 8 | local _u4f60_u597d = 3223 | ||
| 9 | _u53c2_u6570a = 323 | ||
| 10 | end | ||
| 11 | _ = function(_u53c2_u6570a, _u53c2_u6570b, _u53c2_u6570c) | ||
| 12 | _u53c2_u6570a, _u53c2_u6570b, _u53c2_u6570c = 1, 2, 3 | ||
| 13 | local _u4e16_u754c = 12321 | ||
| 14 | end | ||
| 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" | ||
| 20 | end | ||
| 21 | _ = function() | ||
| 22 | local _u4f60_u597d = _u4f60_u597d or 2 | ||
| 23 | end | ||
| 24 | do | ||
| 25 | local _u53d8_u91cfa = { } | ||
| 26 | _(function() | ||
| 27 | local _u5143_u7d20x, _u5143_u7d20y = _u53d8_u91cfa[1], _u53d8_u91cfa[2] | ||
| 28 | end) | ||
| 29 | end | ||
| 30 | return nil | ||
