mirror of
https://github.com/neovim/neovim.git
synced 2026-09-12 17:11:02 +00:00
build: enable more EmmyLua checks
- call-non-callable - missing-fields - redefined-label - redefined-local - undefined-field - unreachable-code Promote redefined-local and unreachable-code to warnings. Fix DOS line-ending handling for multiline semantic tokens, and support intersection types in the help parser. AI-assisted
This commit is contained in:
committed by
Lewis Russell
parent
ec65796cea
commit
6a54396db4
@@ -270,12 +270,13 @@ function M._match_manpage_path(paths, name, sect)
|
||||
end
|
||||
|
||||
-- find any that match the specified name
|
||||
--- @type string[]
|
||||
--- @param v string
|
||||
local namematches = vim.tbl_filter(function(v)
|
||||
local tail = vim.fs.basename(v)
|
||||
return tail:find(name, 1, true) ~= nil
|
||||
end, paths) or {}
|
||||
local sectmatches = {}
|
||||
end, paths)
|
||||
local sectmatches = {} --- @type string[]
|
||||
|
||||
if #namematches > 0 and sect ~= '' then
|
||||
--- @param v string
|
||||
|
||||
Reference in New Issue
Block a user