mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 02:21:51 +00:00
refactor: split predicates and directives
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user