diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-05-29 16:52:20 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2025-05-12 18:43:40 +0200 |
| commit | 9c0a99819c99d70d28334dc6ea1c3ac773e4fed1 (patch) | |
| tree | 24d6d9ebdf2b9aa9a11c9ee271fa5e80d96fe6da /scripts/check-queries.lua | |
| parent | refactor: rewrite installation using jobs and async (diff) | |
| download | nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.gz nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.bz2 nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.lz nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.xz nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.tar.zst nvim-treesitter-9c0a99819c99d70d28334dc6ea1c3ac773e4fed1.zip | |
ci: remove update-lockfile shell script
Diffstat (limited to 'scripts/check-queries.lua')
| -rwxr-xr-x | scripts/check-queries.lua | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/scripts/check-queries.lua b/scripts/check-queries.lua index f5d6d463b..fd9d538ac 100755 --- a/scripts/check-queries.lua +++ b/scripts/check-queries.lua @@ -93,17 +93,20 @@ local ok, result = pcall(do_check) local allowed_to_fail = vim.split(vim.env.ALLOWED_INSTALLATION_FAILURES or '', ',', true) for k, v in pairs(require('nvim-treesitter.parsers').configs) do - if #vim.api.nvim_get_runtime_file('parser/' .. k .. '.*', false) == 0 then - -- On CI all parsers that can be installed from C files should be installed - if - vim.env.CI - and not v.install_info.requires_generate_from_grammar - and not vim.list_contains(allowed_to_fail, k) - then - io_print('Error: parser for ' .. k .. ' is not installed') - vim.cmd('cq') - else - io_print('Warning: parser for ' .. k .. ' is not installed') + if v.install_info then + -- skip "query only" languages + if #vim.api.nvim_get_runtime_file('parser/' .. k .. '.*', false) == 0 then + -- On CI all parsers that can be installed from C files should be installed + if + vim.env.CI + and not v.install_info.requires_generate_from_grammar + and not vim.list_contains(allowed_to_fail, k) + then + io_print('Error: parser for ' .. k .. ' is not installed') + vim.cmd('cq') + else + io_print('Warning: parser for ' .. k .. ' is not installed') + end end end end |
