mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -04:00
fix: force upstreamed predicates
This commit is contained in:
parent
217467c262
commit
95850f7964
1 changed files with 2 additions and 2 deletions
|
|
@ -91,9 +91,9 @@ local function has_ancestor(match, _pattern, _bufnr, pred)
|
|||
return false
|
||||
end
|
||||
|
||||
query.add_predicate("has-ancestor?", has_ancestor)
|
||||
query.add_predicate("has-ancestor?", has_ancestor, true)
|
||||
|
||||
query.add_predicate("has-parent?", has_ancestor)
|
||||
query.add_predicate("has-parent?", has_ancestor, true)
|
||||
|
||||
---@param match (TSNode|nil)[]
|
||||
---@param _pattern string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue