aboutsummaryrefslogtreecommitdiff
path: root/test/functional/treesitter/query_spec.lua
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/functional/treesitter/query_spec.lua
parent8d2ee542a82a0d162198f27de316ddfc81e8761c (diff)
downloadrneovim-dd234135ad20119917831fd8ffcb19d8562022ca.tar.gz
rneovim-dd234135ad20119917831fd8ffcb19d8562022ca.tar.bz2
rneovim-dd234135ad20119917831fd8ffcb19d8562022ca.zip
refactor: split predicates and directives
Diffstat (limited to 'test/functional/treesitter/query_spec.lua')
-rw-r--r--test/functional/treesitter/query_spec.lua4
1 files changed, 2 insertions, 2 deletions
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