annotate runtime/syntax/bzr.vim @ 1761:0836531167ab v7.2.059

updated for version 7.2-059
author vimboss
date Sun, 30 Nov 2008 14:16:57 +0000
parents f4f8014d516e
children 7bc41231fbc7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
1 " Vim syntax file
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
2 " Language: Bazaar (bzr) commit file
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
3 " Maintainer: Dmitry Vasiliev <dima at hlabs dot spb dot ru>
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
4 " URL: http://www.hlabs.spb.ru/vim/bzr.vim
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
5 " Revision: $Id$
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
6 " Filenames: bzr_log.*
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1121
diff changeset
7 " Version: 1.1
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
8
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
9 " For version 5.x: Clear all syntax items.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
10 " For version 6.x: Quit when a syntax file was already loaded.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
11 if version < 600
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
12 syntax clear
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
13 elseif exists("b:current_syntax")
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
14 finish
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
15 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
16
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1121
diff changeset
17 syn region bzrRegion start="^-\{14} This line and the following will be ignored -\{14}$" end="\%$" contains=ALL contains=@NoSpell
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
18 syn match bzrRemoved "^removed:$" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
19 syn match bzrAdded "^added:$" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
20 syn match bzrRenamed "^renamed:$" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
21 syn match bzrModified "^modified:$" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
22 syn match bzrUnchanged "^unchanged:$" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
23 syn match bzrUnknown "^unknown:$" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
24
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
25 " Synchronization.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
26 syn sync clear
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
27 syn sync match bzrSync grouphere bzrRegion "^-\{14} This line and the following will be ignored -\{14}$"me=s-1
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
28
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
29 " Define the default highlighting.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
30 " For version 5.7 and earlier: only when not done already.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
31 " For version 5.8 and later: only when an item doesn't have highlighting yet.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
32 if version >= 508 || !exists("did_bzr_syn_inits")
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
33 if version <= 508
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
34 let did_bzr_syn_inits = 1
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
35 command -nargs=+ HiLink hi link <args>
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
36 else
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
37 command -nargs=+ HiLink hi def link <args>
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
38 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
39
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
40 HiLink bzrRegion Comment
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
41 HiLink bzrRemoved Constant
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
42 HiLink bzrAdded Identifier
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
43 HiLink bzrModified Special
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
44 HiLink bzrRenamed Special
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
45 HiLink bzrUnchanged Special
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
46 HiLink bzrUnknown Special
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
47
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
48 delcommand HiLink
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
49 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
50
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
51 let b:current_syntax = "bzr"