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/diagnostics/helper | |
parent | 1eb666d2804f204f9c49da241479f0974f2eb7e7 (diff) | |
download | lua-language-server-59641f50a418febf886d9388e94c8221efa586c2.zip |
exclude `_`
Diffstat (limited to 'script/core/diagnostics/helper')
-rw-r--r-- | script/core/diagnostics/helper/missing-doc-helper.lua | 3 |
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, |