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