diff options
author | James McCoy <jamessan@jamessan.com> | 2022-06-08 18:04:25 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2022-06-08 18:04:25 -0400 |
commit | 6b0595d7ccb9dd212f6363b2b00769c93b61f396 (patch) | |
tree | 0f814a0eb516b90d3a660d18cc47cc03865d81bd | |
parent | 94181ad7dcb75e1e188164276696434e03302a21 (diff) | |
download | rneovim-6b0595d7ccb9dd212f6363b2b00769c93b61f396.tar.gz rneovim-6b0595d7ccb9dd212f6363b2b00769c93b61f396.tar.bz2 rneovim-6b0595d7ccb9dd212f6363b2b00769c93b61f396.zip |
test(ts): skip test if C parser is not available
-rw-r--r-- | test/functional/treesitter/language_spec.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/treesitter/language_spec.lua b/test/functional/treesitter/language_spec.lua index 84e4fa5c49..30585be328 100644 --- a/test/functional/treesitter/language_spec.lua +++ b/test/functional/treesitter/language_spec.lua @@ -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()")) |