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/plus.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/plus.lua')
| -rw-r--r-- | spec/outputs/plus.lua | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/spec/outputs/plus.lua b/spec/outputs/plus.lua index 749e830..bd89bfe 100644 --- a/spec/outputs/plus.lua +++ b/spec/outputs/plus.lua | |||
| @@ -1,16 +1,18 @@ | |||
| 1 | x["do"](x, "work") | 1 | local _call_0 = x |
| 2 | _call_0["do"](_call_0, "work") | ||
| 2 | func((function() | 3 | func((function() |
| 3 | local _call_0 = a["do"](a) | 4 | local _call_1 = a |
| 4 | local _call_1 = _call_0["end"](_call_0, "OK") | 5 | local _call_2 = _call_1["do"](_call_1) |
| 5 | return _call_1["if"](_call_1, "abc", 123) | 6 | local _call_3 = _call_2["end"](_call_2, "OK") |
| 7 | return _call_3["if"](_call_3, "abc", 123) | ||
| 6 | end)()) | 8 | end)()) |
| 7 | local _call_0 = b["function"] | 9 | local _call_1 = b["function"] |
| 8 | local _call_1 = _call_0["do"](_call_0) | 10 | local _call_2 = _call_1["do"](_call_1) |
| 9 | local _call_2 = _call_1["while"](_call_1, "OK") | 11 | local _call_3 = _call_2["while"](_call_2, "OK") |
| 10 | local res = _call_2["if"](_call_2, "def", 998) | 12 | local res = _call_3["if"](_call_3, "def", 998) |
| 11 | local _call_3 = c["repeat"]["if"] | 13 | local _call_4 = c["repeat"]["if"] |
| 12 | local _call_4 = _call_3["then"](_call_3, "xyz") | 14 | local _call_5 = _call_4["then"](_call_4, "xyz") |
| 13 | _call_4["else"](_call_4, res) | 15 | _call_5["else"](_call_5, res) |
| 14 | print(self["for"], self.__class["function"](self.__class, 123)) | 16 | print(self["for"], self.__class["function"](self.__class, 123)) |
| 15 | do | 17 | do |
| 16 | local fcolor = message:match("<%w*>") | 18 | local fcolor = message:match("<%w*>") |
