Skip to content

Commit b46bce2

Browse files
committed
tools: Import the latest syntax/help.vim
1 parent 2169fa9 commit b46bce2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tools/syntax/help.vim

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim syntax file
22
" Language: Vim help file
33
" Maintainer: Bram Moolenaar ([email protected])
4-
" Last Change: 2016 Sep 02
4+
" Last Change: 2019 May 12
55

66
" Quit when a (custom) syntax file was already loaded
77
if exists("b:current_syntax")
@@ -11,7 +11,7 @@ endif
1111
let s:cpo_save = &cpo
1212
set cpo&vim
1313

14-
syn match helpHeadline "^[-A-Z .][-A-Z0-9 .()]*[ \t]\+\*"me=e-1
14+
syn match helpHeadline "^[-A-Z .][-A-Z0-9 .()_]*[ \t]\+\*"me=e-1
1515
syn match helpSectionDelim "^===.*===$"
1616
syn match helpSectionDelim "^---.*--$"
1717
if has("conceal")
@@ -54,11 +54,13 @@ else
5454
syn match helpIgnore "." contained
5555
endif
5656
syn keyword helpNote note Note NOTE note: Note: NOTE: Notes Notes:
57-
syn keyword helpWarning WARNING: Warning:
57+
syn keyword helpWarning WARNING WARNING: Warning:
58+
syn keyword helpDeprecated DEPRECATED DEPRECATED: Deprecated:
5859
syn match helpSpecial "\<N\>"
5960
syn match helpSpecial "\<N\.$"me=e-1
6061
syn match helpSpecial "\<N\.\s"me=e-2
6162
syn match helpSpecial "(N\>"ms=s+1
63+
6264
syn match helpSpecial "\[N]"
6365
" avoid highlighting N N in help.txt
6466
syn match helpSpecial "N N"he=s+1
@@ -84,6 +86,9 @@ syn match helpSpecial "\[arguments]"
8486
syn match helpSpecial "\[ident]"
8587
syn match helpSpecial "\[addr]"
8688
syn match helpSpecial "\[group]"
89+
" Don't highlight [converted] and others that do not have a tag
90+
syn match helpNormal "\[\(readonly\|fifo\|socket\|converted\|crypted\)]"
91+
8792
syn match helpSpecial "CTRL-."
8893
syn match helpSpecial "CTRL-Break"
8994
syn match helpSpecial "CTRL-PageUp"
@@ -171,6 +176,7 @@ hi def link helpNotVi Special
171176
hi def link helpSpecial Special
172177
hi def link helpNote Todo
173178
hi def link helpWarning Todo
179+
hi def link helpDeprecated Todo
174180

175181
hi def link helpComment Comment
176182
hi def link helpConstant Constant

0 commit comments

Comments
 (0)