summaryrefslogtreecommitdiff
path: root/test/definition/table.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-02-17 20:56:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-02-17 20:56:31 +0800
commit6e0a877b54dd66ce57f8fc07aeb11ee7ba48a907 (patch)
treee179039e0e09994b4788a133dba3107edfeff4dc /test/definition/table.lua
parent44b36c5c1232086efe15853a4eb47bdf1ca4b046 (diff)
downloadlua-language-server-6e0a877b54dd66ce57f8fc07aeb11ee7ba48a907.zip
cleanup
Diffstat (limited to 'test/definition/table.lua')
-rw-r--r--test/definition/table.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/definition/table.lua b/test/definition/table.lua
index 61e8746d..0fb76191 100644
--- a/test/definition/table.lua
+++ b/test/definition/table.lua
@@ -134,6 +134,22 @@ local y = {
t.<?insert?>()
]]
+
+TEST [[
+local x
+x.y.<!z!> = 1
+print(x.y.<?z?>)
+]]
+
+
+TEST [[
+local x
+x.y = {
+ <!z!> = 1
+}
+print(x.y.<?z?>)
+]]
+
TEST [[
local function f()
local t = {}