mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07: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.
|
||||
-- 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] = {}
|
||||
|
Loading…
Reference in New Issue
Block a user