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
77if exists (" b:current_syntax" )
1111let s: cpo_save = &cpo
1212set 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
1515syn match helpSectionDelim " ^===.*===$"
1616syn match helpSectionDelim " ^---.*--$"
1717if has (" conceal" )
5454 syn match helpIgnore " ." contained
5555endif
5656syn 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:
5859syn match helpSpecial " \< N\> "
5960syn match helpSpecial " \< N\. $" me =e - 1
6061syn match helpSpecial " \< N\.\s " me =e - 2
6162syn match helpSpecial " (N\> " ms =s + 1
63+
6264syn match helpSpecial " \[ N]"
6365" avoid highlighting N N in help.txt
6466syn match helpSpecial " N N" he =s + 1
@@ -84,6 +86,9 @@ syn match helpSpecial "\[arguments]"
8486syn match helpSpecial " \[ ident]"
8587syn match helpSpecial " \[ addr]"
8688syn 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+
8792syn match helpSpecial " CTRL-."
8893syn match helpSpecial " CTRL-Break"
8994syn match helpSpecial " CTRL-PageUp"
@@ -171,6 +176,7 @@ hi def link helpNotVi Special
171176hi def link helpSpecial Special
172177hi def link helpNote Todo
173178hi def link helpWarning Todo
179+ hi def link helpDeprecated Todo
174180
175181hi def link helpComment Comment
176182hi def link helpConstant Constant
0 commit comments