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: bzr.vim,v 1.9 2008/08/09 17:39:43 vimboss Exp $
9 " For version 5.x: Clear all syntax items.
10 " For version 6.x: Quit when a syntax file was already loaded.
13 elseif exists("b:current_syntax")
17 syn region bzrRegion start="^-\{14} This line and the following will be ignored -\{14}$" end="\%$" contains=ALL contains=@NoSpell
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
27 syn sync match bzrSync grouphere bzrRegion "^-\{14} This line and the following will be ignored -\{14}$"me=s-1
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")
34 let did_bzr_syn_inits = 1
35 command -nargs=+ HiLink hi link <args>
37 command -nargs=+ HiLink hi def link <args>
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
51 let b:current_syntax = "bzr"