aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/query.lua
diff options
context:
space:
mode:
authorScott Ming <TheRealScottMing@gmail.com>2023-04-11 16:26:03 +0800
committerGitHub <noreply@github.com>2023-04-11 10:26:03 +0200
commitccc0980f86c6ef9a86b0e5a3a691f37cea8eb776 (patch)
tree9f3ab563abcc3e45f4eab1f69cfb628503b624b8 /runtime/lua/vim/treesitter/query.lua
parent7ffe450173d2521c2d53b147e930c50767a7795a (diff)
downloadrneovim-ccc0980f86c6ef9a86b0e5a3a691f37cea8eb776.tar.gz
rneovim-ccc0980f86c6ef9a86b0e5a3a691f37cea8eb776.tar.bz2
rneovim-ccc0980f86c6ef9a86b0e5a3a691f37cea8eb776.zip
fix(treesitter): Use the correct replacement args for #gsub! directive (#23015)
fix(treesitter): use the correct replacement args for #gsub! directive
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 5b87e6ac31..8a747ba14c 100644
--- 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')