mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
vim-patch:31ec664: runtime(doc): Update help syntax, match :autocmd options (#35008)
- Match :autocmd options and special buffer pattern.
- Normalise ellipsis (three dots) in Ex command argument lists.
closes: vim/vim#17793
31ec66403d
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
@@ -108,6 +108,7 @@ syn match helpSpecial "^\t[>enf{}^L:=lbghNEpti+cC/(uUwWkmMjJ)*#P]N\s"ms=s+2,me=
|
||||
syn match helpSpecial "{[-_a-zA-Z0-9'"*+/:%#=[\]<>.,]\+}"
|
||||
syn match helpSpecial "\s\[[-a-z^A-Z0-9_]\{2,}]"ms=s+1
|
||||
syn match helpSpecial "<[-a-zA-Z0-9_]\+>"
|
||||
syn match helpSpecial "<buffer=\w\+>"
|
||||
syn match helpSpecial "<[SCM]-.>"
|
||||
syn match helpNormal "<---*>"
|
||||
syn match helpSpecial "\[range]"
|
||||
@@ -120,6 +121,9 @@ syn match helpSpecial "\[+num]"
|
||||
syn match helpSpecial "\[-num]"
|
||||
syn match helpSpecial "\[+cmd]"
|
||||
syn match helpSpecial "\[++opt]"
|
||||
syn match helpSpecial "\[++once]"
|
||||
syn match helpSpecial "\[++nested]"
|
||||
syn match helpSpecial "\[++t]"
|
||||
syn match helpSpecial "\[arg]"
|
||||
syn match helpSpecial "\[arguments]"
|
||||
syn match helpSpecial "\[ident]"
|
||||
|
||||
Reference in New Issue
Block a user