diff options
| author | Jaehwang Jung <tomtomjhj@gmail.com> | 2025-01-19 17:58:09 +0900 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-01-20 08:49:31 +0100 |
| commit | e8c5242f5323ee8b11983f955cab21bbef7e2df0 (patch) | |
| tree | 6d97f4aaeb237c99ea208ad6b2b8fd4d83a5411f /lua/nvim-treesitter.lua | |
| parent | bot(lockfile): update hyprlang, query, sourcepawn, templ, vhdl, xresources (diff) | |
| download | nvim-treesitter-e8c5242f5323ee8b11983f955cab21bbef7e2df0.tar nvim-treesitter-e8c5242f5323ee8b11983f955cab21bbef7e2df0.tar.gz nvim-treesitter-e8c5242f5323ee8b11983f955cab21bbef7e2df0.tar.bz2 nvim-treesitter-e8c5242f5323ee8b11983f955cab21bbef7e2df0.tar.lz nvim-treesitter-e8c5242f5323ee8b11983f955cab21bbef7e2df0.tar.xz nvim-treesitter-e8c5242f5323ee8b11983f955cab21bbef7e2df0.tar.zst nvim-treesitter-e8c5242f5323ee8b11983f955cab21bbef7e2df0.zip | |
fix(inc-selection): handle injections
* Parse injections before starting selection.
* Make node_incremental climb up the LanaguageTree step by step.
Previously it only considered the root parser and the bottommost
parser. Now it works well with document with deeper injections, e.g.,
```lua
vim.cmd[=[
echo 'hello' 'world!'
lua << EOF
vim.cmd[[echo 'hello' 'world!']]
EOF
]=]
```
Diffstat (limited to 'lua/nvim-treesitter.lua')
0 files changed, 0 insertions, 0 deletions
