aboutsummaryrefslogtreecommitdiff
path: root/scripts/lua2dox.lua
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2022-05-12 01:08:25 +0100
committerGitHub <noreply@github.com>2022-05-11 17:08:25 -0700
commitc24b442e310f06c3ad9d4763b09bc9cb7dbaca62 (patch)
tree35ae01ac9e3b018d4dbf58086b0af58e204996b6 /scripts/lua2dox.lua
parent60b1e314ed6e0f8bbfddb3f12863a666294c07dc (diff)
downloadrneovim-c24b442e310f06c3ad9d4763b09bc9cb7dbaca62.tar.gz
rneovim-c24b442e310f06c3ad9d4763b09bc9cb7dbaca62.tar.bz2
rneovim-c24b442e310f06c3ad9d4763b09bc9cb7dbaca62.zip
fix(runtime/genvimvim): omit s[ubstitute] from vimCommand #18480
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.
Diffstat (limited to 'scripts/lua2dox.lua')
0 files changed, 0 insertions, 0 deletions