annotate runtime/syntax/rcslog.vim @ 27:a01d8d9b2a58 first-working-version

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