annotate runtime/syntax/bzr.vim @ 9638:af0d98d8836e v7.4.2096

commit https://github.com/vim/vim/commit/b49edc11a1872fa99befa9a4a8ea6c8537868038 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 23 15:47:34 2016 +0200 patch 7.4.2096 Problem: Lambda functions show up with completion. Solution: Don't show lambda functions. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Sat, 23 Jul 2016 16:00:06 +0200
parents b37888de599c
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
1 " Vim syntax file
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
2 " Language: Bazaar (bzr) commit file
3356
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
3 " Maintainer: Dmitry Vasiliev <dima at hlabs dot org>
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
4 " URL: https://github.com/hdima/vim-scripts/blob/master/syntax/bzr.vim
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
5 " Last Change: 2012-02-11
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
6 " Filenames: bzr_log.*
3356
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
7 " Version: 1.2.2
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
8 "
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
9 " Thanks:
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
10 "
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
11 " Gioele Barabucci
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
12 " for idea of diff highlighting
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
13
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
14 " For version 5.x: Clear all syntax items.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
15 " For version 6.x: Quit when a syntax file was already loaded.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
16 if version < 600
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
17 syntax clear
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
18 elseif exists("b:current_syntax")
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
19 finish
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
20 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
21
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
22 if exists("bzr_highlight_diff")
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
23 syn include @Diff syntax/diff.vim
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
24 endif
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
25
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
26 syn match bzrRemoved "^removed:$" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
27 syn match bzrAdded "^added:$" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
28 syn match bzrRenamed "^renamed:$" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
29 syn match bzrModified "^modified:$" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
30 syn match bzrUnchanged "^unchanged:$" contained
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
31 syn match bzrUnknown "^unknown:$" contained
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
32 syn cluster Statuses contains=bzrRemoved,bzrAdded,bzrRenamed,bzrModified,bzrUnchanged,bzrUnknown
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
33 if exists("bzr_highlight_diff")
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
34 syn cluster Statuses add=@Diff
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
35 endif
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
36 syn region bzrRegion start="^-\{14} This line and the following will be ignored -\{14}$" end="\%$" contains=@NoSpell,@Statuses
1121
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
37
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
38 " Synchronization.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
39 syn sync clear
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
40 syn sync match bzrSync grouphere bzrRegion "^-\{14} This line and the following will be ignored -\{14}$"me=s-1
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
41
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
42 " Define the default highlighting.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
43 " For version 5.7 and earlier: only when not done already.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
44 " For version 5.8 and later: only when an item doesn't have highlighting yet.
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
45 if version >= 508 || !exists("did_bzr_syn_inits")
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
46 if version <= 508
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
47 let did_bzr_syn_inits = 1
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
48 command -nargs=+ HiLink hi link <args>
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
49 else
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
50 command -nargs=+ HiLink hi def link <args>
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
51 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
52
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
53 HiLink bzrRemoved Constant
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
54 HiLink bzrAdded Identifier
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
55 HiLink bzrModified Special
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
56 HiLink bzrRenamed Special
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
57 HiLink bzrUnchanged Special
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
58 HiLink bzrUnknown Special
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
59
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
60 delcommand HiLink
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
61 endif
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
62
e63691e7c504 updated for version 7.1a
vimboss
parents:
diff changeset
63 let b:current_syntax = "bzr"