annotate runtime/syntax/svn.vim @ 217:89114a6baf3c

updated for version 7.0061
author vimboss
date Fri, 18 Mar 2005 20:27:04 +0000
parents 3fc0f57ecb91
children 9f345c48220b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Subversion (svn) commit file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Dmitry Vasiliev <dima@hlabs.spb.ru>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.hlabs.spb.ru/vim/svn.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: $Date$
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " $Revision$
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 5.x: Clear all syntax items.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 6.x: Quit when a syntax file was already loaded.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn region svnRegion start="--This line, and those below, will be ignored--" end="\%$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match svnRemoved "^D .*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match svnAdded "^A[ M] .*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match svnModified "^M[ M] .*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match svnProperty "^_M .*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Synchronization.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn sync clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn sync match svnSync grouphere svnRegion "--This line, and those below, will be ignored--"me=s-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " For version 5.7 and earlier: only when not done already.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " For version 5.8 and later: only when an item doesn't have highlighting yet.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 if version >= 508 || !exists("did_svn_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 if version <= 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 let did_svn_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 HiLink svnRegion Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 HiLink svnRemoved Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 HiLink svnAdded Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 HiLink svnModified Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 HiLink svnProperty Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 let b:current_syntax = "svn"