comparison runtime/syntax/rcslog.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 3fc0f57ecb91
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
1 " Vim syntax file 1 " Vim syntax file
2 " Language: RCS log output 2 " Language: RCS log output
3 " Maintainer: Joe Karthauser <joe@freebsd.org> 3 " Maintainer: Joe Karthauser <joe@freebsd.org>
4 " Last Change: 2001 May 09 4 " Last Change: 2001 May 09
5 5
6 " For version 5.x: Clear all syntax items 6 " quit when a syntax file was already loaded
7 " For version 6.x: Quit when a syntax file was already loaded 7 if exists("b:current_syntax")
8 if version < 600
9 syntax clear
10 elseif exists("b:current_syntax")
11 finish 8 finish
12 endif 9 endif
13 10
14 syn match rcslogRevision "^revision.*$" 11 syn match rcslogRevision "^revision.*$"
15 syn match rcslogFile "^RCS file:.*" 12 syn match rcslogFile "^RCS file:.*"
16 syn match rcslogDate "^date: .*$" 13 syn match rcslogDate "^date: .*$"
17 14
18 " Define the default highlighting. 15 " Define the default highlighting.
19 " For version 5.7 and earlier: only when not done already 16 " Only when an item doesn't have highlighting yet
20 " For version 5.8 and later: only when an item doesn't have highlighting yet 17 command -nargs=+ HiLink hi def link <args>
21 if version >= 508 || !exists("did_rcslog_syntax_inits")
22 if version < 508
23 let did_rcslog_syntax_inits = 1
24 command -nargs=+ HiLink hi link <args>
25 else
26 command -nargs=+ HiLink hi def link <args>
27 endif
28 18
29 HiLink rcslogFile Type 19 HiLink rcslogFile Type
30 HiLink rcslogRevision Constant 20 HiLink rcslogRevision Constant
31 HiLink rcslogDate Identifier 21 HiLink rcslogDate Identifier
32 22
33 delcommand HiLink 23 delcommand HiLink
34 endif
35 24
36 let b:current_syntax = "rcslog" 25 let b:current_syntax = "rcslog"
37 26
38 " vim: ts=8 27 " vim: ts=8