aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/lua/vim/treesitter/query.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/treesitter/query.lua b/runtime/lua/vim/treesitter/query.lua
index 95057facc0..ca27a50c6a 100644
--- a/runtime/lua/vim/treesitter/query.lua
+++ b/runtime/lua/vim/treesitter/query.lua
@@ -135,8 +135,8 @@ function M.list_predicates()
return vim.tbl_keys(predicate_handlers)
end
-local function xor(a, b)
- return (a or b) and not (a and b)
+local function xor(x, y)
+ return (x or y) and not (x and y)
end
function Query:match_preds(match, pattern, bufnr)