diff options
author | Scott Ming <TheRealScottMing@gmail.com> | 2023-04-11 16:26:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 10:26:03 +0200 |
commit | ccc0980f86c6ef9a86b0e5a3a691f37cea8eb776 (patch) | |
tree | 9f3ab563abcc3e45f4eab1f69cfb628503b624b8 /runtime/lua/vim/treesitter/query.lua | |
parent | 7ffe450173d2521c2d53b147e930c50767a7795a (diff) | |
download | rneovim-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.lua | 2 |
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') |