neovim/runtime/lua/vim/treesitter
Pham Huy Hoang f5573fba3d
fix: Remove nested for_each_tree in TSTreeView (#26328)
Problem:
`LanguageTree:for_each_tree` calls itself for child nodes, so when we
calls `for_each_tree` inside `for_each_tree`, this quickly leads to
exponential tree calls.

Solution:
Use `pairs(child:trees())` directly in this case, as we don't need the
extra callback for each children, this is already handled from the outer
`for_each_tree` call
2023-11-30 10:37:42 -06:00
..
_fold.lua fix(treesitter): make Visual hl work consistently with foldtext (#25484) 2023-10-03 13:07:03 +08:00
_meta.lua docs: document TSNode:byte_length() (#26287) 2023-11-29 08:59:36 -06:00
_query_linter.lua feat(lua): add vim.func._memoize 2023-09-20 13:42:41 +01:00
_range.lua feat(treesitter)!: incremental injection parsing 2023-08-12 16:11:36 +01:00
dev.lua fix: Remove nested for_each_tree in TSTreeView (#26328) 2023-11-30 10:37:42 -06:00
health.lua refactor: deprecate checkhealth functions 2023-04-15 23:40:48 +02:00
highlighter.lua perf(treesitter): do not scan past given line for predicate match 2023-09-16 13:52:42 +01:00
language.lua fix(treesitter): language.add - only register parser if it exists 2023-09-14 10:36:09 +01:00
languagetree.lua fix(treesitter): don't invalidate parser when discovering injections 2023-11-27 15:53:26 +01:00
query.lua feat(lua): add vim.func._memoize 2023-09-20 13:42:41 +01:00