mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
[Backport release-0.9] fix(treesitter): Use the correct replacement args for #gsub! directive (#23018)
fix(treesitter): use the correct replacement args for #gsub! directive
(cherry picked from commit 07db1f7432
)
Co-authored-by: scottming <therealscottming@gmail.com>
This commit is contained in:
![41898282+github-actions[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
GitHub

parent
e50ce4ee3f
commit
702621f058
@@ -458,7 +458,7 @@ local directive_handlers = {
|
|||||||
metadata[id] = {}
|
metadata[id] = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
local pattern, replacement = pred[3], pred[3]
|
local pattern, replacement = pred[3], pred[4]
|
||||||
assert(type(pattern) == 'string')
|
assert(type(pattern) == 'string')
|
||||||
assert(type(replacement) == 'string')
|
assert(type(replacement) == 'string')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user