Mercurial > vim
comparison runtime/syntax/smil.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 | b7811ab264bf |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
5 " Last Change: 2012 Feb 03 by Thilo Six | 5 " Last Change: 2012 Feb 03 by Thilo Six |
6 | 6 |
7 " To learn more about SMIL, please refer to http://www.w3.org/AudioVideo/ | 7 " To learn more about SMIL, please refer to http://www.w3.org/AudioVideo/ |
8 " and to http://www.helio.org/products/smil/tutorial/ | 8 " and to http://www.helio.org/products/smil/tutorial/ |
9 | 9 |
10 " For version 5.x: Clear all syntax items | 10 " quit when a syntax file was already loaded |
11 " For version 6.x: Quit when a syntax file was already loaded | 11 if exists("b:current_syntax") |
12 if version < 600 | |
13 syntax clear | |
14 elseif exists("b:current_syntax") | |
15 finish | 12 finish |
16 endif | 13 endif |
17 | 14 |
18 let s:cpo_save = &cpo | 15 let s:cpo_save = &cpo |
19 set cpo&vim | 16 set cpo&vim |
113 syn region smilCommentPart contained start=+--+ end=+--+ | 110 syn region smilCommentPart contained start=+--+ end=+--+ |
114 endif | 111 endif |
115 syn region smilComment start=+<!DOCTYPE+ keepend end=+>+ | 112 syn region smilComment start=+<!DOCTYPE+ keepend end=+>+ |
116 | 113 |
117 " Define the default highlighting. | 114 " Define the default highlighting. |
118 " For version 5.7 and earlier: only when not done already | 115 " Only when an item doesn't have highlighting yet |
119 " For version 5.8 and later: only when an item doesn't have highlighting yet | 116 command -nargs=+ HiLink hi def link <args> |
120 if version >= 508 || !exists("did_smil_syntax_inits") | |
121 if version < 508 | |
122 let did_smil_syntax_inits = 1 | |
123 command -nargs=+ HiLink hi link <args> | |
124 else | |
125 command -nargs=+ HiLink hi def link <args> | |
126 endif | |
127 | 117 |
128 HiLink smilTag Function | 118 HiLink smilTag Function |
129 HiLink smilEndTag Identifier | 119 HiLink smilEndTag Identifier |
130 HiLink smilArg Type | 120 HiLink smilArg Type |
131 HiLink smilTagName smilStatement | 121 HiLink smilTagName smilStatement |
132 HiLink smilSpecialTagName Exception | 122 HiLink smilSpecialTagName Exception |
133 HiLink smilValue Value | 123 HiLink smilValue Value |
134 HiLink smilSpecialChar Special | 124 HiLink smilSpecialChar Special |
135 | 125 |
136 HiLink smilSpecial Special | 126 HiLink smilSpecial Special |
137 HiLink smilSpecialChar Special | 127 HiLink smilSpecialChar Special |
138 HiLink smilString String | 128 HiLink smilString String |
139 HiLink smilStatement Statement | 129 HiLink smilStatement Statement |
140 HiLink smilComment Comment | 130 HiLink smilComment Comment |
141 HiLink smilCommentPart Comment | 131 HiLink smilCommentPart Comment |
142 HiLink smilPreProc PreProc | 132 HiLink smilPreProc PreProc |
143 HiLink smilValue String | 133 HiLink smilValue String |
144 HiLink smilCommentError smilError | 134 HiLink smilCommentError smilError |
145 HiLink smilTagError smilError | 135 HiLink smilTagError smilError |
146 HiLink smilError Error | 136 HiLink smilError Error |
147 | 137 |
148 delcommand HiLink | 138 delcommand HiLink |
149 endif | |
150 | 139 |
151 let b:current_syntax = "smil" | 140 let b:current_syntax = "smil" |
152 | 141 |
153 if main_syntax == 'smil' | 142 if main_syntax == 'smil' |
154 unlet main_syntax | 143 unlet main_syntax |