1
0
forked from aniani/vim

runtime(vim): Update base-syntax, match :sleep arg

Match :sleep arg properly including a lone "m" with a leading count.

closes: #15003

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2024-06-14 20:16:35 +02:00
committed by Christian Brabandt
parent 79a14c061b
commit 262e25e5a1
6 changed files with 116 additions and 20 deletions

View File

@@ -274,21 +274,48 @@ function! s:get_vim_command_type(cmd_name)
let ab_prefix = '^[ci]\?'
let menu_prefix = '^\%([acinostvx]\?\|tl\)'
let map_prefix = '^[acilnostvx]\?'
let exclude_list = [
\ 'map', 'mapclear',
\ 'substitute', 'smagic', 'snomagic',
\ 'setlocal', 'setglobal', 'set', 'var',
\ 'autocmd', 'augroup', 'doautocmd', 'doautoall',
\ 'echo', 'echoconsole', 'echoerr', 'echohl', 'echomsg', 'echon', 'echowindow',
\ 'execute',
\ 'function', 'endfunction', 'def', 'enddef',
\ 'behave', 'augroup', 'normal', 'syntax',
\ 'append', 'insert',
\ 'Next', 'Print', 'X',
\ 'new', 'popup',
\ 'vim9script',
\ 'catch', 'throw',
\ ]
let exclude_list =<< trim EOL
Next
Print
X
append
augroup
augroup
autocmd
behave
catch
def
doautoall
doautocmd
echo
echoconsole
echoerr
echohl
echomsg
echon
echowindow
enddef
endfunction
execute
function
insert
map
mapclear
new
normal
popup
set
setglobal
setlocal
sleep
smagic
snomagic
substitute
syntax
throw
var
vim9script
EOL
" Required for original behavior
" \ 'global', 'vglobal'