aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/query.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-09-06 11:25:23 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2020-09-06 11:25:23 +0200
commit9c929e7d23b8eaf3ff57dbbe9346abc4430e7669 (patch)
tree0af391b5615de86cbe1d465b217c03ad648e2605 /runtime/lua/vim/treesitter/query.lua
parentb397f31eded2efaaf333308acb52586f3aea4fa5 (diff)
downloadrneovim-9c929e7d23b8eaf3ff57dbbe9346abc4430e7669.tar.gz
rneovim-9c929e7d23b8eaf3ff57dbbe9346abc4430e7669.tar.bz2
rneovim-9c929e7d23b8eaf3ff57dbbe9346abc4430e7669.zip
lint: just bit twiddlin'
Diffstat (limited to 'runtime/lua/vim/treesitter/query.lua')
-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)