aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/query_predicates.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/lua/nvim-treesitter/query_predicates.lua b/lua/nvim-treesitter/query_predicates.lua
index 06c13aa02..d5aacb1ec 100644
--- a/lua/nvim-treesitter/query_predicates.lua
+++ b/lua/nvim-treesitter/query_predicates.lua
@@ -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)