aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/functional/treesitter/language_spec.lua2
-rw-r--r--test/functional/treesitter/utils_spec.lua6
2 files changed, 7 insertions, 1 deletions
diff --git a/test/functional/treesitter/language_spec.lua b/test/functional/treesitter/language_spec.lua
index b66a56264f..8e9941d797 100644
--- a/test/functional/treesitter/language_spec.lua
+++ b/test/functional/treesitter/language_spec.lua
@@ -87,6 +87,7 @@ describe('treesitter language API', function()
end)
it('retrieve the tree given a range', function ()
+ if pending_c_parser(pending) then return end
insert([[
int main() {
int x = 3;
@@ -101,6 +102,7 @@ describe('treesitter language API', function()
end)
it('retrieve the node given a range', function ()
+ if pending_c_parser(pending) then return end
insert([[
int main() {
int x = 3;
diff --git a/test/functional/treesitter/utils_spec.lua b/test/functional/treesitter/utils_spec.lua
index c5609501a7..4f4c18a748 100644
--- a/test/functional/treesitter/utils_spec.lua
+++ b/test/functional/treesitter/utils_spec.lua
@@ -4,12 +4,16 @@ local clear = helpers.clear
local insert = helpers.insert
local eq = helpers.eq
local exec_lua = helpers.exec_lua
+local pending_c_parser = helpers.pending_c_parser
before_each(clear)
describe('treesitter utils', function()
- clear()
+ before_each(clear)
+
it('can find an ancestor', function()
+ if pending_c_parser(pending) then return end
+
insert([[
int main() {
int x = 3;