summaryrefslogtreecommitdiff
path: root/server-beta/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-17 23:37:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-17 23:37:01 +0800
commite8ea5f90e60e36833b3e2d98e66d89e6098faacc (patch)
tree7526305acc1f65c5ab818bcae99896b0e9b5d8cf /server-beta/test
parent0805814ac575b0f610c4831548cb7f74b39ee37c (diff)
downloadlua-language-server-e8ea5f90e60e36833b3e2d98e66d89e6098faacc.zip
修正一些bug
Diffstat (limited to 'server-beta/test')
-rw-r--r--server-beta/test/definition/table.lua2
-rw-r--r--server-beta/test/references/init.lua7
-rw-r--r--server-beta/test/rename/init.lua2
3 files changed, 9 insertions, 2 deletions
diff --git a/server-beta/test/definition/table.lua b/server-beta/test/definition/table.lua
index f4a2f630..34078413 100644
--- a/server-beta/test/definition/table.lua
+++ b/server-beta/test/definition/table.lua
@@ -98,7 +98,7 @@ t.<?insert?>()
TEST[[
local t = {
- <!['insert']!> = 1,
+ [<!'insert'!>] = 1,
}
t.<?insert?>()
]]
diff --git a/server-beta/test/references/init.lua b/server-beta/test/references/init.lua
index 327f4789..951ff516 100644
--- a/server-beta/test/references/init.lua
+++ b/server-beta/test/references/init.lua
@@ -92,6 +92,13 @@ print(t.<!a!>)
]]
TEST [[
+local t = {
+ [<?'a'?>] = 1
+}
+print(t.<!a!>)
+]]
+
+TEST [[
local <!mt!> = {}
function <!mt!>:a()
<?self?>:remove()
diff --git a/server-beta/test/rename/init.lua b/server-beta/test/rename/init.lua
index 48e82546..e9fc5aee 100644
--- a/server-beta/test/rename/init.lua
+++ b/server-beta/test/rename/init.lua
@@ -137,7 +137,7 @@ t.a = 1
a = t.a
]] [[
t = {
- ["!!!"] = 0
+ ['!!!'] = 0
}
t["!!!"] = 1
a = t["!!!"]