diff options
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r-- | server/test/completion/init.lua | 72 |
1 files changed, 45 insertions, 27 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index 684a8fe7..da633a86 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -2,31 +2,31 @@ local matcher = require 'matcher' local parser = require 'parser' local CompletionItemKind = { - Text = 1, - Method = 2, - Function = 3, - Constructor = 4, - Field = 5, - Variable = 6, - Class = 7, - Interface = 8, - Module = 9, - Property = 10, - Unit = 11, - Value = 12, - Enum = 13, - Keyword = 14, - Snippet = 15, - Color = 16, - File = 17, - Reference = 18, - Folder = 19, - EnumMember = 20, - Constant = 21, - Struct = 22, - Event = 23, - Operator = 24, - TypeParameter = 25, + Text = 1, + Method = 2, + Function = 3, + Constructor = 4, + Field = 5, + Variable = 6, + Class = 7, + Interface = 8, + Module = 9, + Property = 10, + Unit = 11, + Value = 12, + Enum = 13, + Keyword = 14, + Snippet = 15, + Color = 16, + File = 17, + Reference = 18, + Folder = 19, + EnumMember = 20, + Constant = 21, + Struct = 22, + Event = 23, + Operator = 24, + TypeParameter = 25, } local function eq(a, b) @@ -79,7 +79,25 @@ a@ } TEST [[ +local abcdefg local abcde -abcde +abcde@ ]] -{} +{ + { + label = 'abcdefg', + kind = CompletionItemKind.Variable, + } +} + +TEST [[ +local abcdefg +a@ +local abcde +]] +{ + { + label = 'abcdefg', + kind = CompletionItemKind.Variable, + } +} |