Mercurial > vim
annotate runtime/syntax/svn.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 | d060c429b21f |
children | 46763b01cd9a |
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 command -nargs=+ HiLink hi def link <args> |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
44 |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
45 HiLink svnSummary Keyword |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
46 HiLink svnBlank Error |
7 | 47 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
48 HiLink svnRegion Comment |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
49 HiLink svnDelimiter NonText |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
50 HiLink svnRemoved Constant |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
51 HiLink svnAdded Identifier |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
52 HiLink svnModified Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
53 HiLink svnProperty Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
54 HiLink svnRenamed Special |
5466 | 55 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
5466
diff
changeset
|
56 delcommand HiLink |
7 | 57 |
58 let b:current_syntax = "svn" |