Runtime files update
[MacVim.git] / runtime / syntax / bzr.vim
blob58ccfba349c3e789a084cd478afff2522fb0457f
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: bzr.vim,v 1.1 2007/05/05 17:20:51 vimboss Exp $
6 " Filenames:    bzr_log.*
7 " Version:      1.0
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
17 syn region bzrRegion   start="^-\{14} This line and the following will be ignored -\{14}$" end="\%$" contains=ALL
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
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
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
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
48   delcommand HiLink
49 endif
51 let b:current_syntax = "bzr"