refactor: split predicates and directives

This commit is contained in:
vanaigr
2024-12-18 01:06:41 -06:00
parent 8d2ee542a8
commit dd234135ad
4 changed files with 107 additions and 72 deletions

View File

@@ -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