mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(treesitter): ipairs -> pairs
Fixes: https://github.com/nvim-treesitter/nvim-treesitter/issues/4349
This commit is contained in:
parent
da56f06037
commit
5aa37e20e0
@ -467,7 +467,7 @@ function LanguageTree:_get_injections()
|
|||||||
|
|
||||||
-- Generate a map by lang of node lists.
|
-- Generate a map by lang of node lists.
|
||||||
-- Each list is a set of ranges that should be parsed together.
|
-- 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
|
for lang, patterns in pairs(lang_map) do
|
||||||
if not result[lang] then
|
if not result[lang] then
|
||||||
result[lang] = {}
|
result[lang] = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user