summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-10 20:35:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-10 20:35:55 +0800
commit9fc47868b4cfc89700f3222583a58e975d1addfb (patch)
tree44ddac2a81b142c982f1574e612219ff2af8913f /server/test
parenta9d694e3d143919bddffaf83b019a6260b209c6b (diff)
downloadlua-language-server-9fc47868b4cfc89700f3222583a58e975d1addfb.zip
更新VM
Diffstat (limited to 'server/test')
-rw-r--r--server/test/vm/init.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/server/test/vm/init.lua b/server/test/vm/init.lua
index b8b41502..8817dfab 100644
--- a/server/test/vm/init.lua
+++ b/server/test/vm/init.lua
@@ -25,7 +25,7 @@ return a
]]
TEST [[
-retrun a.b:c()[1][name]
+retrun a.b:c(1, 2, ...)[1][name]
]]
TEST [[
@@ -57,3 +57,14 @@ return {
1,
}
]]
+
+TEST [[
+::LABEL::
+goto LABEL
+goto NEXT
+::NEXT::
+]]
+
+TEST [[
+a, b, c = 1, 2, ...
+]]