comparison runtime/syntax/man.vim @ 34:e170173ecb68 current-release

before ack base protocol.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 26 Nov 2008 15:02:10 +0900
parents 76efa0be13f1
children c16898406ff2
comparison
equal deleted inserted replaced
33:7d0d8b831f5a 34:e170173ecb68
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