summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-11-30 13:44:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-11-30 13:44:45 +0800
commit2afd196a57e5e2de15fb9fa6ab9a836f26ddb87a (patch)
treeadcb4d6f0f597d1a7ff9e4b5592639cdef4b2497 /server/test
parent5036feacb75692b13cf80949aa701bfc360bc6d3 (diff)
downloadlua-language-server-2afd196a57e5e2de15fb9fa6ab9a836f26ddb87a.zip
支持索引里的表达式
Diffstat (limited to 'server/test')
-rw-r--r--server/test/definition/table.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/server/test/definition/table.lua b/server/test/definition/table.lua
index 04700f17..57e61a78 100644
--- a/server/test/definition/table.lua
+++ b/server/test/definition/table.lua
@@ -56,3 +56,21 @@ local t
t[<!"longString"!>] = 1
t[<?[==[longString]==]?>]()
]]
+
+TEST [[
+local t
+t.<!x!> = 1
+t[<?'x'?>]()
+]]
+
+TEST [[
+local t
+t.<!a!>.b = 1
+t.<?a?>.b()
+]]
+
+TEST [[
+local t
+local <!x!>
+t[<?x?>]()
+]]