mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
treesitter: do not escape in match? (#14382)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user