Mercurial > vim
annotate runtime/syntax/svn.vim @ 20432:05b26264315a
Added tag v8.2.0770 for changeset 682513df5af1c71205a993c1554da8ef496220f7
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 May 2020 19:00:08 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
810 | 2 " Language: Subversion (svn) commit file |
3356 | 3 " Maintainer: Dmitry Vasiliev <dima at hlabs dot org> |
4 " URL: https://github.com/hdima/vim-scripts/blob/master/syntax/svn.vim | |
5466 | 5 " Last Change: 2013-11-08 |
810 | 6 " Filenames: svn-commit*.tmp |
5466 | 7 " Version: 1.10 |
810 | 8 |
9 " Contributors: | |
5466 | 10 " |
11 " List of the contributors in alphabetical order: | |
12 " | |
1698 | 13 " A. S. Budden |
5466 | 14 " Ingo Karkat |
3492 | 15 " Myk Taylor |
5466 | 16 " Stefano Zacchiroli |
7 | 17 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
18 " quit when a syntax file was already loaded. |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
19 if exists("b:current_syntax") |
7 | 20 finish |
21 endif | |
22 | |
5466 | 23 syn spell toplevel |
24 | |
25 syn match svnFirstLine "\%^.*" nextgroup=svnRegion,svnBlank skipnl | |
26 syn match svnSummary "^.\{0,50\}" contained containedin=svnFirstLine nextgroup=svnOverflow contains=@Spell | |
27 syn match svnOverflow ".*" contained contains=@Spell | |
28 syn match svnBlank "^.*" contained contains=@Spell | |
3713 | 29 |
5466 | 30 syn region svnRegion end="\%$" matchgroup=svnDelimiter start="^--.*--$" contains=svnRemoved,svnRenamed,svnAdded,svnModified,svnProperty,@NoSpell |
31 syn match svnRemoved "^D .*$" contained contains=@NoSpell | |
32 syn match svnRenamed "^R[ M][ U][ +] .*$" contained contains=@NoSpell | |
33 syn match svnAdded "^A[ M][ U][ +] .*$" contained contains=@NoSpell | |
34 syn match svnModified "^M[ M][ U] .*$" contained contains=@NoSpell | |
35 syn match svnProperty "^_M[ U] .*$" contained contains=@NoSpell | |
7 | 36 |
37 " Synchronization. | |
38 syn sync clear | |
810 | 39 syn sync match svnSync grouphere svnRegion "^--.*--$"me=s-1 |
7 | 40 |
41 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
42 " Only when an item doesn't have highlighting yet. |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
43 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
44 hi def link svnSummary Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
45 hi def link svnBlank Error |
7 | 46 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
47 hi def link svnRegion Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
48 hi def link svnDelimiter NonText |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
49 hi def link svnRemoved Constant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
50 hi def link svnAdded Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
51 hi def link svnModified Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
52 hi def link svnProperty Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
53 hi def link svnRenamed Special |
5466 | 54 |
7 | 55 |
56 let b:current_syntax = "svn" |