mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(query): add noop handler for make-range
This commit is contained in:
parent
42ca4a4c07
commit
e602f1b22b
1 changed files with 2 additions and 3 deletions
|
|
@ -85,6 +85,5 @@ query.add_predicate('has-type?', function(match, pattern, bufnr, pred)
|
|||
return vim.tbl_contains(types, node:type())
|
||||
end)
|
||||
|
||||
-- Just avoid some anoying warnings for this predicate
|
||||
query.add_predicate('set!', function() return true end)
|
||||
query.add_predicate('make-range!', function() return true end)
|
||||
-- Just avoid some anoying warnings for this directive
|
||||
query.add_directive('make-range!', function() end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue