comparison runtime/syntax/rcs.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 b37888de599c
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
7 " Version: 1.12 7 " Version: 1.12
8 8
9 " Options: 9 " Options:
10 " rcs_folding = 1 For folding strings 10 " rcs_folding = 1 For folding strings
11 11
12 " For version 5.x: Clear all syntax items. 12 " quit when a syntax file was already loaded.
13 " For version 6.x: Quit when a syntax file was already loaded. 13 if exists("b:current_syntax")
14 if version < 600
15 syntax clear
16 elseif exists("b:current_syntax")
17 finish 14 finish
18 endif 15 endif
19 16
20 " RCS file must end with a newline. 17 " RCS file must end with a newline.
21 syn match rcsEOFError ".\%$" containedin=ALL 18 syn match rcsEOFError ".\%$" containedin=ALL
50 syn sync match rcsSync grouphere rcsString "[0-9.]\+\(\s\|\n\)\+log\(\s\|\n\)\+@"me=e-1 47 syn sync match rcsSync grouphere rcsString "[0-9.]\+\(\s\|\n\)\+log\(\s\|\n\)\+@"me=e-1
51 syn sync match rcsSync grouphere rcsTextStr "@\(\s\|\n\)\+text\(\s\|\n\)\+@"me=e-1 48 syn sync match rcsSync grouphere rcsTextStr "@\(\s\|\n\)\+text\(\s\|\n\)\+@"me=e-1
52 endif 49 endif
53 50
54 " Define the default highlighting. 51 " Define the default highlighting.
55 " For version 5.7 and earlier: only when not done already. 52 " Only when an item doesn't have highlighting yet.
56 " For version 5.8 and later: only when an item doesn't have highlighting yet. 53 command -nargs=+ HiLink hi def link <args>
57 if version >= 508 || !exists("did_rcs_syn_inits")
58 if version <= 508
59 let did_rcs_syn_inits = 1
60 command -nargs=+ HiLink hi link <args>
61 else
62 command -nargs=+ HiLink hi def link <args>
63 endif
64 54
65 HiLink rcsKeyword Keyword 55 HiLink rcsKeyword Keyword
66 HiLink rcsNumber Identifier 56 HiLink rcsNumber Identifier
67 HiLink rcsString String 57 HiLink rcsString String
68 HiLink rcsTextStr String 58 HiLink rcsTextStr String
69 HiLink rcsSpecial Special 59 HiLink rcsSpecial Special
70 HiLink rcsDiffLines Special 60 HiLink rcsDiffLines Special
71 HiLink rcsEOFError Error 61 HiLink rcsEOFError Error
72 62
73 delcommand HiLink 63 delcommand HiLink
74 endif
75 64
76 let b:current_syntax = "rcs" 65 let b:current_syntax = "rcs"