Mercurial > hg > RemoteEditor > vim7
annotate runtime/syntax/bzr.vim @ 34:e170173ecb68 current-release
before ack base protocol.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 26 Nov 2008 15:02:10 +0900 |
parents | 6a13985590e6 |
children | c16898406ff2 |
rev | line source |
---|---|
0 | 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 | |
34
e170173ecb68
before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
9
diff
changeset
|
5 " Revision: $Id: bzr.vim,v 1.2 2008/08/29 06:41:29 axmo Exp $ |
0 | 6 " Filenames: bzr_log.* |
9 | 7 " Version: 1.1 |
0 | 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 | |
9 | 17 syn region bzrRegion start="^-\{14} This line and the following will be ignored -\{14}$" end="\%$" contains=ALL contains=@NoSpell |
0 | 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" |