neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit ccc0980f86c6ef9a86b0e5a3a691f37cea8eb776
parent 7ffe450173d2521c2d53b147e930c50767a7795a
Author: Scott Ming <TheRealScottMing@gmail.com>
Date:   Tue, 11 Apr 2023 16:26:03 +0800

fix(treesitter): Use the correct replacement args for #gsub! directive (#23015)

fix(treesitter): use the correct replacement args for #gsub! directive
Diffstat:
Mruntime/lua/vim/treesitter/query.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/lua/vim/treesitter/query.lua b/runtime/lua/vim/treesitter/query.lua @@ -458,7 +458,7 @@ local directive_handlers = { metadata[id] = {} end - local pattern, replacement = pred[3], pred[3] + local pattern, replacement = pred[3], pred[4] assert(type(pattern) == 'string') assert(type(replacement) == 'string')