aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/query.lua
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2021-05-11 11:52:47 +0200
committerGitHub <noreply@github.com>2021-05-11 11:52:47 +0200
commit5c9b4948d40e851a640f989d65511977a19c6bdd (patch)
tree2a52dd1086db808eff0e718b5e1d5c8883e69ddb /runtime/lua/vim/treesitter/query.lua
parent133351cbf80d620513eb6eb1b63eae15312eaeed (diff)
downloadrneovim-5c9b4948d40e851a640f989d65511977a19c6bdd.tar.gz
rneovim-5c9b4948d40e851a640f989d65511977a19c6bdd.tar.bz2
rneovim-5c9b4948d40e851a640f989d65511977a19c6bdd.zip
treesitter: do not escape in match? (#14382)
Diffstat (limited to 'runtime/lua/vim/treesitter/query.lua')
-rw-r--r--runtime/lua/vim/treesitter/query.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/treesitter/query.lua b/runtime/lua/vim/treesitter/query.lua
index 9b4d28e09a..c0140f9186 100644
--- a/runtime/lua/vim/treesitter/query.lua
+++ b/runtime/lua/vim/treesitter/query.lua
@@ -231,7 +231,7 @@ local predicate_handlers = {
local compiled_vim_regexes = setmetatable({}, {
__index = function(t, pattern)
- local res = vim.regex(check_magic(vim.fn.escape(pattern, '\\')))
+ local res = vim.regex(check_magic(pattern))
rawset(t, pattern, res)
return res
end