aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorvanaigr <vanaigranov@gmail.com>2024-12-18 01:06:41 -0600
committervanaigr <vanaigranov@gmail.com>2025-01-06 00:35:19 -0600
commitdd234135ad20119917831fd8ffcb19d8562022ca (patch)
tree9c26bb172ead60b9bdab2d847525edb3c4b34881 /test
parent8d2ee542a82a0d162198f27de316ddfc81e8761c (diff)
downloadrneovim-dd234135ad20119917831fd8ffcb19d8562022ca.tar.gz
rneovim-dd234135ad20119917831fd8ffcb19d8562022ca.tar.bz2
rneovim-dd234135ad20119917831fd8ffcb19d8562022ca.zip
refactor: split predicates and directives
Diffstat (limited to 'test')
-rw-r--r--test/benchmark/decor_spec.lua1
-rw-r--r--test/functional/treesitter/query_spec.lua4
2 files changed, 2 insertions, 3 deletions
diff --git a/test/benchmark/decor_spec.lua b/test/benchmark/decor_spec.lua
index 42b2d1e744..1b7e763a09 100644
--- a/test/benchmark/decor_spec.lua
+++ b/test/benchmark/decor_spec.lua
@@ -99,7 +99,6 @@ describe('decor perf', function()
print('\nTotal ' .. fmt(total) .. '\nDecoration provider: ' .. fmt(provider))
end)
-
it('can handle full screen of highlighting', function()
Screen.new(100, 51)
diff --git a/test/functional/treesitter/query_spec.lua b/test/functional/treesitter/query_spec.lua
index 634f8af83d..6e21ed1d99 100644
--- a/test/functional/treesitter/query_spec.lua
+++ b/test/functional/treesitter/query_spec.lua
@@ -835,9 +835,9 @@ void ui_refresh(void)
local result = exec_lua(function()
local query0 = vim.treesitter.query.parse('c', query)
- local match_preds = query0.match_preds
+ local match_preds = query0._match_predicates
local called = 0
- function query0:match_preds(...)
+ function query0:_match_predicates(...)
called = called + 1
return match_preds(self, ...)
end