neovim/runtime
Lewis Russell ac2dff64a5 fix(treesitter): make sure injections don't return empty ranges (#24595)
When an injection has not set include children, make sure not to add
the injection if no ranges are determined.

This could happen when there is an injection with a child that has the
same range as itself. e.g. consider this Makefile snippet

```make
foo:
  $(VAR)
```

Line 2 has an injection for bash and a make variable reference. If
include-children isn't set (default), then there is no range on line 2
to inject since the variable reference needs to be excluded.

This caused the language tree to return an empty range, which the parser
now interprets to mean the full buffer. This caused makefiles to have
completely broken highlighting.
2023-08-10 18:08:54 +02:00
..
autoload clipboard: suppression exit warning if exit code is >= 128 2023-07-16 14:24:57 +00:00
colors fix(runtime): use g:terminal_color_{0-15} in colorschemes (#20637) 2022-10-17 15:24:37 +01:00
compiler vim-patch:86b4816766d9 (#21314) 2022-12-08 16:33:38 +01:00
doc fix(lsp): do not assume client capability exists in watchfiles check (#24558) 2023-08-04 10:16:54 +01:00
ftplugin [Backport release-0.9] fix(runtime): add commentstring for C# ftplugin (#23041) 2023-04-12 14:01:46 +02:00
indent vim-patch:partial:dd60c365cd26 (#22437) 2023-02-28 09:34:27 +01:00
keymap
lua fix(treesitter): make sure injections don't return empty ranges (#24595) 2023-08-10 18:08:54 +02:00
macros
pack/dist/opt fix(termdebug): handle partial lines passed to callback 2023-04-08 11:28:14 +00:00
plugin fix(treesitter): InspectTree does not respect 'splitright' #22692 2023-03-17 04:41:57 -07:00
queries fix(treesitter): remove incompatible c query (#23859) 2023-06-02 11:53:40 +02:00
spell feat(runtime): import cleanadd.vim from Vim (#17699) 2022-03-13 04:52:45 +00:00
syntax vim-patch:partial:dd60c365cd26 (#22437) 2023-02-28 09:34:27 +01:00
tools vim-patch:e80086446cc2 (#19848) 2022-08-20 10:04:55 +02:00
tutor fix(tutor): don't use concealed text in expected lines 2023-07-11 17:11:07 +00:00
bugreport.vim
CMakeLists.txt refactor(build): make installation of runtime/ more effective 2023-03-07 20:16:52 +01:00
delmenu.vim vim-patch:9.0.0141: "delmenu" does not remove autocmmands (#19646) 2022-08-05 12:23:41 +02:00
filetype.lua feat(runtime)!: remove filetype.vim (#20428) 2022-10-17 08:52:40 +02:00
ftoff.vim
ftplugin.vim fix(ftplugin): respect runtimepath ordering 2023-06-30 10:22:24 +00:00
ftplugof.vim
indent.vim
indoff.vim
macmap.vim
makemenu.vim
menu.vim feat!: remove hardcopy 2023-01-03 10:07:43 +00:00
mswin.vim
neovim.ico feat(windows): show icon in terminal titlebar, taskbar #20607 2022-10-13 05:48:12 -07:00
nvim.appdata.xml NVIM 0.9.1 2023-05-29 13:24:38 +02:00
nvim.desktop build(nvim.desktop): central Kurdish translation #17065 2022-05-13 11:58:22 -07:00
nvim.png
optwin.vim feat(options)!: deprecate paste, remove pastetoggle (#22647) 2023-03-13 10:29:11 +08:00
synmenu.vim vim-patch:3c053a1a5ad2 (#20679) 2022-10-17 08:19:48 +02:00