summaryrefslogtreecommitdiff
path: root/server/test/completion
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/completion')
-rw-r--r--server/test/completion/init.lua45
1 files changed, 25 insertions, 20 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 383c7007..6dc998c7 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -770,26 +770,31 @@ t.$
}
}
---TEST [[
---local elseaaa
---if a then
---else$
---]]
---{
--- {
--- label = 'elseaaa',
--- kind = CompletionItemKind.Variable,
--- documentation = EXISTS,
--- },
--- {
--- label = 'else',
--- kind = CompletionItemKind.Keyword,
--- },
--- {
--- label = 'elseif',
--- kind = CompletionItemKind.Keyword,
--- }
---}
+TEST [[
+local elseaaa
+ELSE = 1
+if a then
+else$
+]]
+{
+ {
+ label = 'elseaaa',
+ kind = CompletionItemKind.Variable,
+ },
+ {
+ label = 'ELSE',
+ kind = CompletionItemKind.Enum,
+ detail = EXISTS,
+ },
+ {
+ label = 'else',
+ kind = CompletionItemKind.Keyword,
+ },
+ {
+ label = 'elseif',
+ kind = CompletionItemKind.Keyword,
+ }
+}
TEST [[
---@$