comparison runtime/syntax/man.vim @ 1621:82b5078be2dd

updated for version 7.2a
author vimboss
date Tue, 24 Jun 2008 21:56:24 +0000
parents 3fc0f57ecb91
children 7bc41231fbc7
comparison
equal deleted inserted replaced
1620:73fe8baea242 1621:82b5078be2dd
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Man page 2 " Language: Man page
3 " Maintainer: Nam SungHyun <namsh@kldp.org> 3 " Maintainer: Nam SungHyun <namsh@kldp.org>
4 " Previous Maintainer: Gautam H. Mudunuri <gmudunur@informatica.com> 4 " Previous Maintainer: Gautam H. Mudunuri <gmudunur@informatica.com>
5 " Version Info: 5 " Version Info:
6 " Last Change: 2004 May 16 6 " Last Change: 2007 Dec 30
7 7
8 " Additional highlighting by Johannes Tanzler <johannes.tanzler@aon.at>: 8 " Additional highlighting by Johannes Tanzler <johannes.tanzler@aon.at>:
9 " * manSubHeading 9 " * manSubHeading
10 " * manSynopsis (only for sections 2 and 3) 10 " * manSynopsis (only for sections 2 and 3)
11 11
34 " syn match manHistory "^[a-z].*last change.*$" 34 " syn match manHistory "^[a-z].*last change.*$"
35 35
36 if getline(1) =~ '^[a-zA-Z_]\+([23])' 36 if getline(1) =~ '^[a-zA-Z_]\+([23])'
37 syntax include @cCode <sfile>:p:h/c.vim 37 syntax include @cCode <sfile>:p:h/c.vim
38 syn match manCFuncDefinition display "\<\h\w*\>\s*("me=e-1 contained 38 syn match manCFuncDefinition display "\<\h\w*\>\s*("me=e-1 contained
39 syn region manSynopsis start="^SYNOPSIS"hs=s+8 end="^\u\+\s*$"he=e-12 keepend contains=manSectionHeading,@cCode,manCFuncDefinition 39 syn region manSynopsis start="^SYNOPSIS"hs=s+8 end="^\u\+\s*$"me=e-12 keepend contains=manSectionHeading,@cCode,manCFuncDefinition
40 endif 40 endif
41 41
42 42
43 " Define the default highlighting. 43 " Define the default highlighting.
44 " For version 5.7 and earlier: only when not done already 44 " For version 5.7 and earlier: only when not done already