diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-26 17:29:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-26 17:29:40 +0800 |
commit | 68bb36273433e7ea764dc1cd583b3a97ccff7a0b (patch) | |
tree | 40a20a6fc56c9211ff9f217b999fc9cf29b880cb /server/test/completion/init.lua | |
parent | 5a46cba0367512b65322bf64125d5b9661c869bd (diff) | |
download | lua-language-server-68bb36273433e7ea764dc1cd583b3a97ccff7a0b.zip |
更多处理
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r-- | server/test/completion/init.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index 9c2a878f..8a477ab2 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -297,3 +297,31 @@ local t = { documentation = EXISTS, } } + +TEST [[ +local faa +local f@ +print(fff) +]] +{ + { + label = 'fff', + kind = CompletionItemKind.Variable, + }, + { + label = 'function', + kind = CompletionItemKind.Keyword, + } +} + +TEST [[ +local function f(f@) + print(fff) +end +]] +{ + { + label = 'fff', + kind = CompletionItemKind.Variable, + }, +} |