summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/helper
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-06-29 12:42:54 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-06-29 12:42:58 +0800
commit59641f50a418febf886d9388e94c8221efa586c2 (patch)
treeb1247203763293bb766fe7a4ad1878ee117e650b /script/core/diagnostics/helper
parent1eb666d2804f204f9c49da241479f0974f2eb7e7 (diff)
downloadlua-language-server-59641f50a418febf886d9388e94c8221efa586c2.zip
exclude `_`
Diffstat (limited to 'script/core/diagnostics/helper')
-rw-r--r--script/core/diagnostics/helper/missing-doc-helper.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/diagnostics/helper/missing-doc-helper.lua b/script/core/diagnostics/helper/missing-doc-helper.lua
index 3b953b86..116173f2 100644
--- a/script/core/diagnostics/helper/missing-doc-helper.lua
+++ b/script/core/diagnostics/helper/missing-doc-helper.lua
@@ -51,7 +51,8 @@ local function checkFunction(source, callback, commentId, paramId, returnId)
if argCount > 0 then
for _, arg in ipairs(source.args) do
local argName = arg[1]
- if argName ~= 'self' then
+ if argName ~= 'self'
+ and argName ~= '_' then
if not findParam(source.bindDocs, argName) then
callback {
start = arg.start,