Skip to content

Commit bd3bb12

Browse files
jamessangithub-actions[bot]
authored andcommitted
test(ts): skip test if C parser is not available
(cherry picked from commit 6b0595d)
1 parent d317cb2 commit bd3bb12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/functional/treesitter/language_spec.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ describe('treesitter API', function()
7070
end)
7171

7272
it('checks if vim.treesitter.get_parser tries to create a new parser on filetype change', function ()
73+
if pending_c_parser(pending) then return end
7374
command("set filetype=c")
7475
-- Should not throw an error when filetype is c
7576
eq('c', exec_lua("return vim.treesitter.get_parser(0):lang()"))

0 commit comments

Comments
 (0)