comparison 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
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
13 " A. S. Budden 13 " A. S. Budden
14 " Ingo Karkat 14 " Ingo Karkat
15 " Myk Taylor 15 " Myk Taylor
16 " Stefano Zacchiroli 16 " Stefano Zacchiroli
17 17
18 " For version 5.x: Clear all syntax items. 18 " quit when a syntax file was already loaded.
19 " For version 6.x: Quit when a syntax file was already loaded. 19 if exists("b:current_syntax")
20 if version < 600
21 syntax clear
22 elseif exists("b:current_syntax")
23 finish 20 finish
24 endif 21 endif
25 22
26 syn spell toplevel 23 syn spell toplevel
27 24
40 " Synchronization. 37 " Synchronization.
41 syn sync clear 38 syn sync clear
42 syn sync match svnSync grouphere svnRegion "^--.*--$"me=s-1 39 syn sync match svnSync grouphere svnRegion "^--.*--$"me=s-1
43 40
44 " Define the default highlighting. 41 " Define the default highlighting.
45 " For version 5.7 and earlier: only when not done already. 42 " Only when an item doesn't have highlighting yet.
46 " For version 5.8 and later: only when an item doesn't have highlighting yet. 43 command -nargs=+ HiLink hi def link <args>
47 if version >= 508 || !exists("did_svn_syn_inits")
48 if version <= 508
49 let did_svn_syn_inits = 1
50 command -nargs=+ HiLink hi link <args>
51 else
52 command -nargs=+ HiLink hi def link <args>
53 endif
54 44
55 HiLink svnSummary Keyword 45 HiLink svnSummary Keyword
56 HiLink svnBlank Error 46 HiLink svnBlank Error
57 47
58 HiLink svnRegion Comment 48 HiLink svnRegion Comment
59 HiLink svnDelimiter NonText 49 HiLink svnDelimiter NonText
60 HiLink svnRemoved Constant 50 HiLink svnRemoved Constant
61 HiLink svnAdded Identifier 51 HiLink svnAdded Identifier
62 HiLink svnModified Special 52 HiLink svnModified Special
63 HiLink svnProperty Special 53 HiLink svnProperty Special
64 HiLink svnRenamed Special 54 HiLink svnRenamed Special
65 55
66 delcommand HiLink 56 delcommand HiLink
67 endif
68 57
69 let b:current_syntax = "svn" 58 let b:current_syntax = "svn"