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/do.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/do.lua')
| -rw-r--r-- | spec/outputs/unicode/do.lua | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/spec/outputs/unicode/do.lua b/spec/outputs/unicode/do.lua new file mode 100644 index 0000000..f9c3079 --- /dev/null +++ b/spec/outputs/unicode/do.lua | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | do | ||
| 2 | _u6253_u5370("你好") | ||
| 3 | _u6253_u5370("世界") | ||
| 4 | end | ||
| 5 | local _u53d8_u91cfx | ||
| 6 | do | ||
| 7 | _u6253_u5370("你好") | ||
| 8 | _u53d8_u91cfx = _u6253_u5370("世界") | ||
| 9 | end | ||
| 10 | local _u53d8_u91cfy | ||
| 11 | do | ||
| 12 | local _u4e1c_u897f = "shhh" | ||
| 13 | _u53d8_u91cfy = function() | ||
| 14 | return "你好: " .. _u4e1c_u897f | ||
| 15 | end | ||
| 16 | end | ||
| 17 | local _ | ||
| 18 | _ = function() | ||
| 19 | if _u67d0_u6761_u4ef6 then | ||
| 20 | do | ||
| 21 | return "好的" | ||
| 22 | end | ||
| 23 | end | ||
| 24 | end | ||
| 25 | local _u53d8_u91cft = { | ||
| 26 | ["y字段"] = (function() | ||
| 27 | local _u6570_u5b57 = 100 | ||
| 28 | return function(_u53c2_u6570x) | ||
| 29 | return _u53c2_u6570x + _u6570_u5b57 | ||
| 30 | end | ||
| 31 | end)() | ||
| 32 | } | ||
| 33 | return function(_u53c2_u6570y, _u53c2_u6570k) | ||
| 34 | if _u53c2_u6570y == nil then | ||
| 35 | do | ||
| 36 | _u53d8_u91cfx = 10 + 2 | ||
| 37 | _u53c2_u6570y = _u53d8_u91cfx | ||
| 38 | end | ||
| 39 | end | ||
| 40 | if _u53c2_u6570k == nil then | ||
| 41 | do | ||
| 42 | _u53c2_u6570k = "没啥" | ||
| 43 | end | ||
| 44 | end | ||
| 45 | do | ||
| 46 | return "啊" | ||
| 47 | end | ||
| 48 | end | ||
