mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -04:00
fix(lua): fix some emmyluals warnings
This commit is contained in:
parent
75797cdd8a
commit
e0eec76dad
6 changed files with 37 additions and 13 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
local generate = false
|
||||
local update = false
|
||||
local max_jobs = nil ---@type integer?
|
||||
local max_jobs = nil ---@type number?
|
||||
local parsers = {}
|
||||
for i = 1, #_G.arg do
|
||||
if _G.arg[i] == '--generate' then
|
||||
|
|
@ -10,7 +10,7 @@ for i = 1, #_G.arg do
|
|||
elseif _G.arg[i] == '--update' then
|
||||
update = true
|
||||
elseif _G.arg[i]:find('^%-%-max%-jobs') then
|
||||
max_jobs = _G.arg[i]:match('=(%d+)')
|
||||
max_jobs = tonumber(_G.arg[i]:match('=(%d+)'))
|
||||
else
|
||||
parsers[#parsers + 1] = _G.arg[i] ---@type string
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue