summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-30 14:39:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-30 14:39:29 +0800
commit288c114e0e6c33c47a0a59d3a4c3e3886f0c02e1 (patch)
tree2b5dc70932f702063e3da05923ffcc1e5eaa18c1 /script/core
parent90fa999b000207f4e52363da05917ae5fc6da574 (diff)
downloadlua-language-server-288c114e0e6c33c47a0a59d3a4c3e3886f0c02e1.zip
自动完成总是保留do
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index 756f136b..230860c2 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -400,7 +400,8 @@ local function searchKeyWords(vm, source, word, callback)
if snippet.key[key] then
if snipType ~= 'Replace'
or key == 'local'
- or key == 'return' then
+ or key == 'return'
+ or key == 'do' then
callback(key, nil, CompletionItemKind.Keyword)
end
if snipType ~= 'Disable' then