summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-16 17:13:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-16 17:13:05 +0800
commit792afd666c6c43bdbd7e82ec8596755f579dc9ba (patch)
tree207b03ee49dc58344c8f79653947a6b3ade20eca /test
parent025c4c5fb2ced70e448716391be70fc47e82b1fb (diff)
downloadlua-language-server-792afd666c6c43bdbd7e82ec8596755f579dc9ba.zip
completion: supports `t:$` as `doc.function`
Diffstat (limited to 'test')
-rw-r--r--test/completion/init.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index 1ed82b2a..3dd9b639 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -2723,3 +2723,17 @@ f('$')
},
},
}
+
+TEST [[
+---@class Class
+---@field on fun()
+local c
+
+c:$
+]]
+{
+ {
+ label = 'on',
+ kind = define.CompletionItemKind.Field,
+ }
+}