diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-11-30 13:44:45 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-11-30 13:44:45 +0800 |
commit | 2afd196a57e5e2de15fb9fa6ab9a836f26ddb87a (patch) | |
tree | adcb4d6f0f597d1a7ff9e4b5592639cdef4b2497 /server/test/definition | |
parent | 5036feacb75692b13cf80949aa701bfc360bc6d3 (diff) | |
download | lua-language-server-2afd196a57e5e2de15fb9fa6ab9a836f26ddb87a.zip |
支持索引里的表达式
Diffstat (limited to 'server/test/definition')
-rw-r--r-- | server/test/definition/table.lua | 18 |
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?>]() +]] |