summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/undefined-doc-name.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-03 17:20:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-03 17:20:30 +0800
commit45ba0743c75d0f2b68765db0240f150681808205 (patch)
tree7dc6c8f4e4ca776abc6c87cc80b9859f3c08d17d /script/core/diagnostics/undefined-doc-name.lua
parent213f5176ff3125feab1e743ef57abba0e18a44a5 (diff)
downloadlua-language-server-45ba0743c75d0f2b68765db0240f150681808205.zip
support `self` type
#1505
Diffstat (limited to 'script/core/diagnostics/undefined-doc-name.lua')
-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 bacd4288..3c8ed469 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 == '...' or name == '_' then
+ if name == '...' or name == '_' or name == 'self' then
return
end
if #vm.getDocSets(uri, name) > 0