annotate runtime/syntax/svn.vim @ 908:bd7e26d05a3f v7.0.034

updated for version 7.0-034
author vimboss
date Fri, 23 Jun 2006 15:59:09 +0000
parents 9f345c48220b
children f4f8014d516e
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
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
2 " Language: Subversion (svn) commit file
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
3 " Maintainer: Dmitry Vasiliev <dima at hlabs dot spb dot ru>
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
4 " URL: http://www.hlabs.spb.ru/vim/svn.vim
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
5 " Revision: $Id$
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
6 " Filenames: svn-commit*.tmp
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
7 " Version: 1.5
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
8
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
9 " Contributors:
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
10 " Stefano Zacchiroli
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " For version 5.x: Clear all syntax items.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " For version 6.x: Quit when a syntax file was already loaded.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
20 syn region svnRegion start="^--.*--$" end="\%$" contains=ALL
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
21 syn match svnRemoved "^D .*$" contained
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
22 syn match svnAdded "^A[ M] .*$" contained
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
23 syn match svnModified "^M[ M] .*$" contained
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
24 syn match svnProperty "^_M .*$" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Synchronization.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn sync clear
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
28 syn sync match svnSync grouphere svnRegion "^--.*--$"me=s-1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " For version 5.7 and earlier: only when not done already.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " 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
33 if version >= 508 || !exists("did_svn_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 if version <= 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 let did_svn_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
41 HiLink svnRegion Comment
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
42 HiLink svnRemoved Constant
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
43 HiLink svnAdded Identifier
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
44 HiLink svnModified Special
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
45 HiLink svnProperty Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 let b:current_syntax = "svn"