aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/plus.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-08-17 10:36:15 +0800
committerLi Jin <dragon-fly@qq.com>2023-08-17 10:36:15 +0800
commite61cce21ef7def2c2e52dd6cb6a5b540ebcac29d (patch)
tree6e7c5e7e6f13157e9f8db26c38f6d8cba75683e5 /spec/outputs/plus.lua
parent289faf45ac26f7e0ac1a1e4305e5c42fc1e5b866 (diff)
downloadyuescript-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.lua24
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 @@
1x["do"](x, "work") 1local _call_0 = x
2_call_0["do"](_call_0, "work")
2func((function() 3func((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)
6end)()) 8end)())
7local _call_0 = b["function"] 9local _call_1 = b["function"]
8local _call_1 = _call_0["do"](_call_0) 10local _call_2 = _call_1["do"](_call_1)
9local _call_2 = _call_1["while"](_call_1, "OK") 11local _call_3 = _call_2["while"](_call_2, "OK")
10local res = _call_2["if"](_call_2, "def", 998) 12local res = _call_3["if"](_call_3, "def", 998)
11local _call_3 = c["repeat"]["if"] 13local _call_4 = c["repeat"]["if"]
12local _call_4 = _call_3["then"](_call_3, "xyz") 14local _call_5 = _call_4["then"](_call_4, "xyz")
13_call_4["else"](_call_4, res) 15_call_5["else"](_call_5, res)
14print(self["for"], self.__class["function"](self.__class, 123)) 16print(self["for"], self.__class["function"](self.__class, 123))
15do 17do
16 local fcolor = message:match("<%w*>") 18 local fcolor = message:match("<%w*>")