fix(treesitter): ipairs -> pairs

Fixes: https://github.com/nvim-treesitter/nvim-treesitter/issues/4349
This commit is contained in:
Lewis Russell 2023-02-27 15:01:09 +00:00 committed by GitHub
parent da56f06037
commit 5aa37e20e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -467,7 +467,7 @@ function LanguageTree:_get_injections()
-- Generate a map by lang of node lists.
-- Each list is a set of ranges that should be parsed together.
for _, lang_map in ipairs(injections) do
for _, lang_map in pairs(injections) do
for lang, patterns in pairs(lang_map) do
if not result[lang] then
result[lang] = {}