mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
feat: add "experimental" key to parsers
feat(ci): mark parsers as experimental in README
This commit is contained in:
parent
6b82b26a74
commit
e87ed0fdaa
4 changed files with 56 additions and 1 deletions
|
|
@ -546,6 +546,8 @@ list.verilog = {
|
|||
},
|
||||
used_by = { "systemverilog" },
|
||||
maintainers = { "@zegervdv" },
|
||||
-- The parser still uses API version 12, because it does not compile with 13
|
||||
experimental = true,
|
||||
}
|
||||
|
||||
-- Parsers for injections
|
||||
|
|
@ -772,6 +774,7 @@ function M.maintained_parsers()
|
|||
local has_tree_sitter_cli = vim.fn.executable "tree-sitter" == 1 and vim.fn.executable "node" == 1
|
||||
return vim.tbl_filter(function(lang)
|
||||
return M.list[lang].maintainers
|
||||
and not M.list[lang].experimental
|
||||
and (has_tree_sitter_cli or not M.list[lang].install_info.requires_generate_from_grammar)
|
||||
end, M.available_parsers())
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue