mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: allow running CI without ts parsers installed
This commit is contained in:
parent
950ab00c2b
commit
a4e1b76f55
@ -720,14 +720,10 @@ function module.pending_win32(pending_fn)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function module.pending_c_parser(pending_fn)
|
function module.pending_c_parser(pending_fn)
|
||||||
local status, msg = unpack(module.exec_lua([[ return {pcall(vim.treesitter.require_language, 'c')} ]]))
|
local status, _ = unpack(module.exec_lua([[ return {pcall(vim.treesitter.require_language, 'c')} ]]))
|
||||||
if not status then
|
if not status then
|
||||||
if module.isCI() then
|
pending_fn 'no C parser, skipping'
|
||||||
error("treesitter C parser not found, required on CI: " .. msg)
|
return true
|
||||||
else
|
|
||||||
pending_fn 'no C parser, skipping'
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user