mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #18903 from jamessan/skip-test-parsers
test(ts): skip test if C parser is not available
This commit is contained in:
commit
8a70c53dad
@ -70,6 +70,7 @@ describe('treesitter API', function()
|
||||
end)
|
||||
|
||||
it('checks if vim.treesitter.get_parser tries to create a new parser on filetype change', function ()
|
||||
if pending_c_parser(pending) then return end
|
||||
command("set filetype=c")
|
||||
-- Should not throw an error when filetype is c
|
||||
eq('c', exec_lua("return vim.treesitter.get_parser(0):lang()"))
|
||||
|
Loading…
Reference in New Issue
Block a user