diff options
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, + }, +} |