mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
c24b442e31
It's special cased by the vimSubst syntax group, and isn't present in Vim's vimCommand group. For example, this fixes `call s:Foo()` highlighting `:` as Error in Nvim, as the `s` is parsed as vimCommand rather than as vimUserFunc since `contains=vimCommand` was added to vimUserFunc (and vimFunc) in a rt update. Interestingly, `g:`, `l:`, etc. have the same issues due to :global, :list, etc. Vim also has that problem, so it should ideally be fixed upstream. We could also omit g[lobal] from vimCommand and rely on vimGlobal instead, but it doesn't work in some cases, like when there's a `:` before the command. Also, Vim matches only `g` in vimCommand for some reason, which doesn't produce any highlight for `:global/foo/bar` (with Nvim you at least get some highlights on the `global` bit despite the leading `:`). Also, remove special handling of :py3 in syntax/vim.vim, as the generator seems to have no problems finding it. |
||
---|---|---|
.. | ||
bump_deps.lua | ||
bump-deps.sh | ||
check_urls.vim | ||
check-includes.py | ||
download-unicode-files.sh | ||
gen_filetype.lua | ||
gen_help_html.py | ||
gen_vimdoc.py | ||
genappimage.sh | ||
genvimvim.lua | ||
git-log-pretty-since.sh | ||
legacy2luatest.pl | ||
lintcommit.lua | ||
lua2dox_filter | ||
lua2dox.lua | ||
movedocs.pl | ||
pvscheck.sh | ||
release.sh | ||
shadacat.py | ||
uncrustify.sh | ||
update_terminfo.sh | ||
update_version_stamp.lua | ||
vim-patch.sh | ||
vimpatch.lua | ||
windows.ti |