From 9c929e7d23b8eaf3ff57dbbe9346abc4430e7669 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 6 Sep 2020 11:25:23 +0200 Subject: lint: just bit twiddlin' --- runtime/lua/vim/treesitter/query.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/lua') 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) -- cgit