Updated runtime files. Remove version checks for Vim older than 6.0.
This commit is contained in:
@ -7,11 +7,8 @@
|
||||
" To learn more about SMIL, please refer to http://www.w3.org/AudioVideo/
|
||||
" and to http://www.helio.org/products/smil/tutorial/
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@ -115,38 +112,30 @@ endif
|
||||
syn region smilComment start=+<!DOCTYPE+ keepend end=+>+
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_smil_syntax_inits")
|
||||
if version < 508
|
||||
let did_smil_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only when an item doesn't have highlighting yet
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
|
||||
HiLink smilTag Function
|
||||
HiLink smilEndTag Identifier
|
||||
HiLink smilArg Type
|
||||
HiLink smilTagName smilStatement
|
||||
HiLink smilSpecialTagName Exception
|
||||
HiLink smilValue Value
|
||||
HiLink smilSpecialChar Special
|
||||
HiLink smilTag Function
|
||||
HiLink smilEndTag Identifier
|
||||
HiLink smilArg Type
|
||||
HiLink smilTagName smilStatement
|
||||
HiLink smilSpecialTagName Exception
|
||||
HiLink smilValue Value
|
||||
HiLink smilSpecialChar Special
|
||||
|
||||
HiLink smilSpecial Special
|
||||
HiLink smilSpecialChar Special
|
||||
HiLink smilString String
|
||||
HiLink smilStatement Statement
|
||||
HiLink smilComment Comment
|
||||
HiLink smilCommentPart Comment
|
||||
HiLink smilPreProc PreProc
|
||||
HiLink smilValue String
|
||||
HiLink smilCommentError smilError
|
||||
HiLink smilTagError smilError
|
||||
HiLink smilError Error
|
||||
HiLink smilSpecial Special
|
||||
HiLink smilSpecialChar Special
|
||||
HiLink smilString String
|
||||
HiLink smilStatement Statement
|
||||
HiLink smilComment Comment
|
||||
HiLink smilCommentPart Comment
|
||||
HiLink smilPreProc PreProc
|
||||
HiLink smilValue String
|
||||
HiLink smilCommentError smilError
|
||||
HiLink smilTagError smilError
|
||||
HiLink smilError Error
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
delcommand HiLink
|
||||
|
||||
let b:current_syntax = "smil"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user