diff options
author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2023-11-29 23:16:52 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 08:16:52 -0600 |
commit | b6e339eb90e1a04f407f381739e46ad3c84f69c5 (patch) | |
tree | 73df467d5d9a8dc63ff03e8d773c2b77e7dc26da /runtime/lua/vim/snippet.lua | |
parent | 7bc5ee7f9327e8210c78bd21935130840aaf63f2 (diff) | |
download | rneovim-b6e339eb90e1a04f407f381739e46ad3c84f69c5.tar.gz rneovim-b6e339eb90e1a04f407f381739e46ad3c84f69c5.tar.bz2 rneovim-b6e339eb90e1a04f407f381739e46ad3c84f69c5.zip |
fix(treesitter): make InspectTree correctly handle nested injections (#26085)
Problem: Only injections under the top level tree are found.
Solution: Iterate through all trees to find injections. When two
injections are contained within the same node in the parent tree, prefer
the injection with the larger byte length.
Diffstat (limited to 'runtime/lua/vim/snippet.lua')
0 files changed, 0 insertions, 0 deletions