summaryrefslogtreecommitdiff
path: root/script/core/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-08 17:38:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-08 17:38:44 +0800
commitdb4ae9c48b7d2f97823469e8a32aff170ecba12f (patch)
treed167f6430773ebd3fd93b31611b1ad98bec60aaa /script/core/diagnostics
parent103aee69bf717936432e2739695305ce2058786e (diff)
downloadlua-language-server-db4ae9c48b7d2f97823469e8a32aff170ecba12f.zip
resolve #993 supports multi-types
Diffstat (limited to 'script/core/diagnostics')
-rw-r--r--script/core/diagnostics/undefined-doc-name.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/undefined-doc-name.lua b/script/core/diagnostics/undefined-doc-name.lua
index 69edb380..bacd4288 100644
--- a/script/core/diagnostics/undefined-doc-name.lua
+++ b/script/core/diagnostics/undefined-doc-name.lua
@@ -32,7 +32,7 @@ return function (uri, callback)
return
end
local name = source[1]
- if name == '...' then
+ if name == '...' or name == '_' then
return
end
if #vm.getDocSets(uri, name) > 0