aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-10-06 07:33:37 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-10-06 07:44:40 +0800
commitbd56c1e41f1f66d82595bf3fb40cbb7ffe5e38bc (patch)
treec515d4464751aebe549d82db2155667b0ce6a869 /runtime/syntax
parentdc704160b114c4b61712b66300c41641004a7b58 (diff)
downloadrneovim-bd56c1e41f1f66d82595bf3fb40cbb7ffe5e38bc.tar.gz
rneovim-bd56c1e41f1f66d82595bf3fb40cbb7ffe5e38bc.tar.bz2
rneovim-bd56c1e41f1f66d82595bf3fb40cbb7ffe5e38bc.zip
vim-patch:partial:89872f5: runtime(doc): update formatting and syntax
closes: vim/vim#15800 https://github.com/vim/vim/commit/89872f58a9938142417906fc3243257c67c0af9c Co-authored-by: Milly <milly.ca@gmail.com>
Diffstat (limited to 'runtime/syntax')
-rw-r--r--runtime/syntax/help.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim
index 0f62c26294..fd128bb0b5 100644
--- a/runtime/syntax/help.vim
+++ b/runtime/syntax/help.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Vim help file
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2023 Aug 10
+" Last Change: 2024 Oct 05
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
" Quit when a (custom) syntax file was already loaded
@@ -60,10 +60,14 @@ syn match helpSpecial "\<N\.\s"me=e-2
syn match helpSpecial "(N\>"ms=s+1
syn match helpSpecial "\[N]"
-" avoid highlighting N N in help.txt
+" avoid highlighting N N in quickref.txt
syn match helpSpecial "N N"he=s+1
syn match helpSpecial "Nth"me=e-2
syn match helpSpecial "N-1"me=e-2
+" highlighting N of cinoptions-values in indent.txt
+syn match helpSpecial "^\t-\?\zsNs\?\s"me=s+1
+" highlighting N of cinoptions-values in indent.txt
+syn match helpSpecial "^\t[>enf{}^L:=lbghNEpti+cC/(uUwWkmMjJ)*#P]N\s"ms=s+2,me=e-1
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_]\+>"