7
|
1 " Vim syntax file
|
|
2 " Language: RCS log output
|
|
3 " Maintainer: Joe Karthauser <joe@freebsd.org>
|
|
4 " Last Change: 2001 May 09
|
|
5
|
|
6 " For version 5.x: Clear all syntax items
|
|
7 " For version 6.x: Quit when a syntax file was already loaded
|
|
8 if version < 600
|
|
9 syntax clear
|
|
10 elseif exists("b:current_syntax")
|
|
11 finish
|
|
12 endif
|
|
13
|
|
14 syn match rcslogRevision "^revision.*$"
|
|
15 syn match rcslogFile "^RCS file:.*"
|
|
16 syn match rcslogDate "^date: .*$"
|
|
17
|
|
18 " Define the default highlighting.
|
|
19 " For version 5.7 and earlier: only when not done already
|
|
20 " For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
21 if version >= 508 || !exists("did_rcslog_syntax_inits")
|
|
22 if version < 508
|
|
23 let did_rcslog_syntax_inits = 1
|
|
24 command -nargs=+ HiLink hi link <args>
|
|
25 else
|
|
26 command -nargs=+ HiLink hi def link <args>
|
|
27 endif
|
|
28
|
|
29 HiLink rcslogFile Type
|
|
30 HiLink rcslogRevision Constant
|
|
31 HiLink rcslogDate Identifier
|
|
32
|
|
33 delcommand HiLink
|
|
34 endif
|
|
35
|
|
36 let b:current_syntax = "rcslog"
|
|
37
|
|
38 " vim: ts=8
|