feat: add "experimental" key to parsers

feat(ci): mark parsers as experimental in README
This commit is contained in:
Cezary Drożak 2021-10-04 19:37:38 +02:00 committed by Stephan Seitz
parent 6b82b26a74
commit e87ed0fdaa
4 changed files with 56 additions and 1 deletions

View file

@ -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