summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/completion/init.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index 9848bc09..abd5b9a0 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -2356,6 +2356,22 @@ elseif
}
TEST [[
+do
+ if true then$
+end
+]]
+{
+ {
+ label = 'then',
+ kind = define.CompletionItemKind.Keyword,
+ },
+ {
+ label = 'then .. end',
+ kind = define.CompletionItemKind.Snippet,
+ }
+}
+
+TEST [[
---@class C
---@field x number
---@field y number