Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromneovim/neovim

Commit496e786

Browse files
authored
Merge pull requestneovim#18534 from neovim/backport-18480-to-release-0.7
[Backport release-0.7] fix(runtime/genvimvim): omit s[ubstitute] from vimCommand
2 parents35075dc +0377973 commit496e786

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

‎runtime/syntax/vim.vim‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ else
120120
com! -nargs=*VimFoldt<args>
121121
endif
122122

123-
" commands not picked up by the generator (due to non-standard format) {{{2
124-
synkeywordvimCommandcontainedpy3
125-
126123
" Deprecated variable options {{{2
127124
ifexists("g:vim_minlines")
128125
letg:vimsyn_minlines=g:vim_minlines

‎scripts/genvimvim.lua‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ local function cmd_kw(prev_cmd, cmd)
4444
end
4545

4646
-- Exclude these from the vimCommand keyword list, they are handled specially
47-
-- in syntax/vim.vim (vimAugroupKey, vimAutoCmd). #9327
48-
localfunctionis_autocmd_cmd(cmd)
47+
-- in syntax/vim.vim (vimAugroupKey, vimAutoCmd, vimSubst). #9327
48+
localfunctionis_special_cased_cmd(cmd)
4949
return (cmd=='augroup'
5050
orcmd=='autocmd'
5151
orcmd=='doautocmd'
52-
orcmd=='doautoall')
52+
orcmd=='doautoall'
53+
orcmd=='substitute')
5354
end
5455

5556
localvimcmd_start='syn keyword vimCommand contained'
@@ -60,7 +61,7 @@ for _, cmd_desc in ipairs(ex_cmds.cmds) do
6061
w('\n'..vimcmd_start)
6162
end
6263
localcmd=cmd_desc.command
63-
ifcmd:match('%w')andcmd~='z'andnotis_autocmd_cmd(cmd)then
64+
ifcmd:match('%w')andcmd~='z'andnotis_special_cased_cmd(cmd)then
6465
w(''..cmd_kw(prev_cmd,cmd))
6566
end
6667
prev_cmd=cmd

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp