diff options
author | James McCoy <jamessan@jamessan.com> | 2022-06-08 21:10:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-08 21:10:01 -0400 |
commit | 8a70c53dad178033c2f53b3ca7a6def5bac25eca (patch) | |
tree | 5b6b3ae546855f8e0f91ea062628ad0e873cf037 | |
parent | 916d848049979e7b3974fbf4b6fdf2cf58ae98c3 (diff) | |
parent | 6b0595d7ccb9dd212f6363b2b00769c93b61f396 (diff) | |
download | rneovim-8a70c53dad178033c2f53b3ca7a6def5bac25eca.tar.gz rneovim-8a70c53dad178033c2f53b3ca7a6def5bac25eca.tar.bz2 rneovim-8a70c53dad178033c2f53b3ca7a6def5bac25eca.zip |
Merge pull request #18903 from jamessan/skip-test-parsers
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()")) |