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