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/stub.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/stub.lua')
-rw-r--r-- | spec/outputs/unicode/stub.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/outputs/unicode/stub.lua b/spec/outputs/unicode/stub.lua new file mode 100644 index 0000000..5f183a1 --- /dev/null +++ b/spec/outputs/unicode/stub.lua | |||
@@ -0,0 +1,26 @@ | |||
1 | local _u53d8_u91cfx = { | ||
2 | ["值"] = 100, | ||
3 | ["你好"] = function(self) | ||
4 | return _u6253_u5370(self.val) | ||
5 | end | ||
6 | } | ||
7 | local _u51fd_u6570 | ||
8 | do | ||
9 | local _base_0 = _u53d8_u91cfx | ||
10 | local _fn_0 = _base_0["值"] | ||
11 | _u51fd_u6570 = _fn_0 and function(...) | ||
12 | return _fn_0(_base_0, ...) | ||
13 | end | ||
14 | end | ||
15 | _u6253_u5370(_u51fd_u6570()) | ||
16 | _u6253_u5370(_u53d8_u91cfx["值"](_u53d8_u91cfx)); | ||
17 | (function(...) | ||
18 | do | ||
19 | local _base_0 = _u4f60_u597d(...) | ||
20 | local _fn_0 = _base_0["世界"] | ||
21 | _u53d8_u91cfx = _fn_0 and function(...) | ||
22 | return _fn_0(_base_0, ...) | ||
23 | end | ||
24 | end | ||
25 | end)() | ||
26 | return nil | ||