mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
fix: resolve all remaining LuaLS diagnostics
This commit is contained in:

committed by
Lewis Russell

parent
83479b95ab
commit
6aa42e8f92
@@ -317,7 +317,7 @@ end
|
||||
--- @return nil|integer
|
||||
local function register_hl(state, hl)
|
||||
if type(hl) == 'table' then
|
||||
hl = hl[#hl]
|
||||
hl = hl[#hl] --- @type string|integer
|
||||
end
|
||||
if type(hl) == 'nil' then
|
||||
return
|
||||
@@ -1162,7 +1162,9 @@ local function extend_pre(out, state)
|
||||
s = s .. _pre_text_to_html(state, row)
|
||||
end
|
||||
local true_line_len = #line + 1
|
||||
for k in pairs(style_line) do
|
||||
for k in
|
||||
pairs(style_line --[[@as table<string,any>]])
|
||||
do
|
||||
if type(k) == 'number' and k > true_line_len then
|
||||
true_line_len = k
|
||||
end
|
||||
|
Reference in New Issue
Block a user