treesitter: do not escape in match? (#14382)

This commit is contained in:
Stephan Seitz
2021-05-11 11:52:47 +02:00
committed by GitHub
parent 133351cbf8
commit 5c9b4948d4
2 changed files with 36 additions and 1 deletions

View File

@@ -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