3 " Maintainer: Nam SungHyun <namsh@kldp.org>
4 " Previous Maintainer: Gautam H. Mudunuri <gmudunur@informatica.com>
5 " Last Change: 2001 Apr 26
8 " For version 5.x: Clear all syntax items
9 " For version 6.x: Quit when a syntax file was already loaded
12 elseif exists("b:current_syntax")
16 " Get the CTRL-H syntax to handle backspaced text
18 runtime! syntax/ctrlh.vim
20 source <sfile>:p:h/ctrlh.vim
24 syn match manReference "\f\+([1-9][a-z]\=)"
25 syn match manTitle "^\f\+([0-9]\+[a-z]\=).*"
26 syn match manSectionHeading "^[a-z][a-z ]*[a-z]$"
27 syn match manOptionDesc "^\s*[+-][a-z0-9]\S*"
28 " syn match manHistory "^[a-z].*last change.*$"
30 " Define the default highlighting.
31 " For version 5.7 and earlier: only when not done already
32 " For version 5.8 and later: only when an item doesn't have highlighting yet
33 if version >= 508 || !exists("did_man_syn_inits")
35 let did_man_syn_inits = 1
36 command -nargs=+ HiLink hi link <args>
38 command -nargs=+ HiLink hi def link <args>
42 HiLink manSectionHeading Statement
43 HiLink manOptionDesc Constant
44 " HiLink manHistory Comment
45 HiLink manReference PreProc
50 let b:current_syntax = "man"
52 " vim:ts=8 sts=2 sw=2: