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 " Last Change: 2009-01-27
12 " for idea of diff highlighting
14 " For version 5.x: Clear all syntax items.
15 " For version 6.x: Quit when a syntax file was already loaded.
18 elseif exists("b:current_syntax")
22 if exists("bzr_highlight_diff")
23 syn include @Diff syntax/diff.vim
26 syn match bzrRemoved "^removed:$" contained
27 syn match bzrAdded "^added:$" contained
28 syn match bzrRenamed "^renamed:$" contained
29 syn match bzrModified "^modified:$" contained
30 syn match bzrUnchanged "^unchanged:$" contained
31 syn match bzrUnknown "^unknown:$" contained
32 syn cluster Statuses contains=bzrRemoved,bzrAdded,bzrRenamed,bzrModified,bzrUnchanged,bzrUnknown
33 if exists("bzr_highlight_diff")
34 syn cluster Statuses add=@Diff
36 syn region bzrRegion start="^-\{14} This line and the following will be ignored -\{14}$" end="\%$" contains=@NoSpell,@Statuses
40 syn sync match bzrSync grouphere bzrRegion "^-\{14} This line and the following will be ignored -\{14}$"me=s-1
42 " Define the default highlighting.
43 " For version 5.7 and earlier: only when not done already.
44 " For version 5.8 and later: only when an item doesn't have highlighting yet.
45 if version >= 508 || !exists("did_bzr_syn_inits")
47 let did_bzr_syn_inits = 1
48 command -nargs=+ HiLink hi link <args>
50 command -nargs=+ HiLink hi def link <args>
53 HiLink bzrRemoved Constant
54 HiLink bzrAdded Identifier
55 HiLink bzrModified Special
56 HiLink bzrRenamed Special
57 HiLink bzrUnchanged Special
58 HiLink bzrUnknown Special
63 let b:current_syntax = "bzr"