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

fix(treesitter): use the correct replacement args for #gsub! directive
This commit is contained in:
Scott Ming 2023-04-11 16:26:03 +08:00 committed by GitHub
parent 7ffe450173
commit ccc0980f86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')