Mercurial > vim
annotate runtime/syntax/bzr.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | b37888de599c |
children | 46763b01cd9a |
rev | line source |
---|---|
1121 | 1 " Vim syntax file |
2 " Language: Bazaar (bzr) commit file | |
3356 | 3 " Maintainer: Dmitry Vasiliev <dima at hlabs dot org> |
4 " URL: https://github.com/hdima/vim-scripts/blob/master/syntax/bzr.vim | |
5 " Last Change: 2012-02-11 | |
1121 | 6 " Filenames: bzr_log.* |
3356 | 7 " Version: 1.2.2 |
2034 | 8 " |
9 " Thanks: | |
10 " | |
11 " Gioele Barabucci | |
12 " for idea of diff highlighting | |
1121 | 13 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3356
diff
changeset
|
14 " quit when a syntax file was already loaded. |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3356
diff
changeset
|
15 if exists("b:current_syntax") |
1121 | 16 finish |
17 endif | |
18 | |
2034 | 19 if exists("bzr_highlight_diff") |
20 syn include @Diff syntax/diff.vim | |
21 endif | |
22 | |
1121 | 23 syn match bzrRemoved "^removed:$" contained |
24 syn match bzrAdded "^added:$" contained | |
25 syn match bzrRenamed "^renamed:$" contained | |
26 syn match bzrModified "^modified:$" contained | |
27 syn match bzrUnchanged "^unchanged:$" contained | |
28 syn match bzrUnknown "^unknown:$" contained | |
2034 | 29 syn cluster Statuses contains=bzrRemoved,bzrAdded,bzrRenamed,bzrModified,bzrUnchanged,bzrUnknown |
30 if exists("bzr_highlight_diff") | |
31 syn cluster Statuses add=@Diff | |
32 endif | |
33 syn region bzrRegion start="^-\{14} This line and the following will be ignored -\{14}$" end="\%$" contains=@NoSpell,@Statuses | |
1121 | 34 |
35 " Synchronization. | |
36 syn sync clear | |
37 syn sync match bzrSync grouphere bzrRegion "^-\{14} This line and the following will be ignored -\{14}$"me=s-1 | |
38 | |
39 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3356
diff
changeset
|
40 " Only when an item doesn't have highlighting yet. |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3356
diff
changeset
|
41 command -nargs=+ HiLink hi def link <args> |
1121 | 42 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3356
diff
changeset
|
43 HiLink bzrRemoved Constant |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3356
diff
changeset
|
44 HiLink bzrAdded Identifier |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3356
diff
changeset
|
45 HiLink bzrModified Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3356
diff
changeset
|
46 HiLink bzrRenamed Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3356
diff
changeset
|
47 HiLink bzrUnchanged Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3356
diff
changeset
|
48 HiLink bzrUnknown Special |
1121 | 49 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3356
diff
changeset
|
50 delcommand HiLink |
1121 | 51 |
52 let b:current_syntax = "bzr" |