diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-06-29 12:42:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-06-29 12:42:58 +0800 |
commit | 59641f50a418febf886d9388e94c8221efa586c2 (patch) | |
tree | b1247203763293bb766fe7a4ad1878ee117e650b /script/core | |
parent | 1eb666d2804f204f9c49da241479f0974f2eb7e7 (diff) | |
download | lua-language-server-59641f50a418febf886d9388e94c8221efa586c2.zip |
exclude `_`
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/diagnostics/helper/missing-doc-helper.lua | 3 | ||||
-rw-r--r-- | script/core/diagnostics/incomplete-signature-doc.lua | 3 |
2 files changed, 4 insertions, 2 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, diff --git a/script/core/diagnostics/incomplete-signature-doc.lua b/script/core/diagnostics/incomplete-signature-doc.lua index f91f22d2..b800eb4e 100644 --- a/script/core/diagnostics/incomplete-signature-doc.lua +++ b/script/core/diagnostics/incomplete-signature-doc.lua @@ -81,7 +81,8 @@ return function (uri, callback) if source.args and #source.args > 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, |