mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 19:18:34 +00:00
fix(tests): use pending_c_parser when needed
This commit is contained in:
@@ -87,6 +87,7 @@ describe('treesitter language API', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('retrieve the tree given a range', function ()
|
it('retrieve the tree given a range', function ()
|
||||||
|
if pending_c_parser(pending) then return end
|
||||||
insert([[
|
insert([[
|
||||||
int main() {
|
int main() {
|
||||||
int x = 3;
|
int x = 3;
|
||||||
@@ -101,6 +102,7 @@ describe('treesitter language API', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('retrieve the node given a range', function ()
|
it('retrieve the node given a range', function ()
|
||||||
|
if pending_c_parser(pending) then return end
|
||||||
insert([[
|
insert([[
|
||||||
int main() {
|
int main() {
|
||||||
int x = 3;
|
int x = 3;
|
||||||
|
@@ -4,12 +4,16 @@ local clear = helpers.clear
|
|||||||
local insert = helpers.insert
|
local insert = helpers.insert
|
||||||
local eq = helpers.eq
|
local eq = helpers.eq
|
||||||
local exec_lua = helpers.exec_lua
|
local exec_lua = helpers.exec_lua
|
||||||
|
local pending_c_parser = helpers.pending_c_parser
|
||||||
|
|
||||||
before_each(clear)
|
before_each(clear)
|
||||||
|
|
||||||
describe('treesitter utils', function()
|
describe('treesitter utils', function()
|
||||||
clear()
|
before_each(clear)
|
||||||
|
|
||||||
it('can find an ancestor', function()
|
it('can find an ancestor', function()
|
||||||
|
if pending_c_parser(pending) then return end
|
||||||
|
|
||||||
insert([[
|
insert([[
|
||||||
int main() {
|
int main() {
|
||||||
int x = 3;
|
int x = 3;
|
||||||
|
Reference in New Issue
Block a user