codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: SMIL (Synchronized Multimedia Integration Language)3" Maintainer: Herve Foucher <Herve.Foucher@helio.org>4" URL: http://www.helio.org/vim/syntax/smil.vim5" Last Change: 2012 Feb 03 by Thilo Six6 7" To learn more about SMIL, please refer to http://www.w3.org/AudioVideo/8" and to http://www.helio.org/products/smil/tutorial/9 10" quit when a syntax file was already loaded11if exists("b:current_syntax")12 finish13endif14 15let s:cpo_save = &cpo16set cpo&vim17 18" SMIL is case sensitive19syn case match20 21" illegal characters22syn match smilError "[<>&]"23syn match smilError "[()&]"24 25if !exists("main_syntax")26 let main_syntax = 'smil'27endif28 29" tags30syn match smilSpecial contained "\\\d\d\d\|\\."31syn match smilSpecial contained "("32syn match smilSpecial contained "id("33syn match smilSpecial contained ")"34syn keyword smilSpecial contained remove freeze true false on off overdub caption new pause replace35syn keyword smilSpecial contained first last36syn keyword smilSpecial contained fill meet slice scroll hidden37syn region smilString contained start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=smilSpecial38syn region smilString contained start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=smilSpecial39syn match smilValue contained "=[\t ]*[^'" \t>][^ \t>]*"hs=s+140syn region smilEndTag start=+</+ end=+>+ contains=smilTagN,smilTagError41syn region smilTag start=+<[^/]+ end=+>+ contains=smilTagN,smilString,smilArg,smilValue,smilTagError,smilEvent,smilCssDefinition42syn match smilTagN contained +<\s*[-a-zA-Z0-9]\++ms=s+1 contains=smilTagName,smilSpecialTagName43syn match smilTagN contained +</\s*[-a-zA-Z0-9]\++ms=s+2 contains=smilTagName,smilSpecialTagName44syn match smilTagError contained "[^>]<"ms=s+145 46" tag names47syn keyword smilTagName contained smil head body anchor a switch region layout meta48syn match smilTagName contained "root-layout"49syn keyword smilTagName contained par seq50syn keyword smilTagName contained animation video img audio ref text textstream51syn match smilTagName contained "\<\(head\|body\)\>"52 53 54" legal arg names55syn keyword smilArg contained dur begin end href target id coords show title abstract author copyright alt56syn keyword smilArg contained left top width height fit src name content fill longdesc repeat type57syn match smilArg contained "z-index"58syn match smilArg contained " end-sync"59syn match smilArg contained " region"60syn match smilArg contained "background-color"61syn match smilArg contained "system-bitrate"62syn match smilArg contained "system-captions"63syn match smilArg contained "system-overdub-or-caption"64syn match smilArg contained "system-language"65syn match smilArg contained "system-required"66syn match smilArg contained "system-screen-depth"67syn match smilArg contained "system-screen-size"68syn match smilArg contained "clip-begin"69syn match smilArg contained "clip-end"70syn match smilArg contained "skip-content"71 72 73" SMIL Boston ext.74" This are new SMIL functionnalities seen on www.w3.org on August 3rd 199975 76" Animation77syn keyword smilTagName contained animate set move78syn keyword smilArg contained calcMode from to by additive values origin path79syn keyword smilArg contained accumulate hold attribute80syn match smilArg contained "xml:link"81syn keyword smilSpecial contained discrete linear spline parent layout82syn keyword smilSpecial contained top left simple83 84" Linking85syn keyword smilTagName contained area86syn keyword smilArg contained actuate behavior inline sourceVolume87syn keyword smilArg contained destinationVolume destinationPlaystate tabindex88syn keyword smilArg contained class style lang dir onclick ondblclick onmousedown onmouseup onmouseover onmousemove onmouseout onkeypress onkeydown onkeyup shape nohref accesskey onfocus onblur89syn keyword smilSpecial contained play pause stop rect circ poly child par seq90 91" Media Object92syn keyword smilTagName contained rtpmap93syn keyword smilArg contained port transport encoding payload clipBegin clipEnd94syn match smilArg contained "fmt-list"95 96" Timing and Synchronization97syn keyword smilTagName contained excl98syn keyword smilArg contained beginEvent endEvent eventRestart endSync repeatCount repeatDur99syn keyword smilArg contained syncBehavior syncTolerance100syn keyword smilSpecial contained canSlip locked101 102" special characters103syn match smilSpecialChar "&[^;]*;"104 105if exists("smil_wrong_comments")106 syn region smilComment start=+<!--+ end=+-->+107else108 syn region smilComment start=+<!+ end=+>+ contains=smilCommentPart,smilCommentError109 syn match smilCommentError contained "[^><!]"110 syn region smilCommentPart contained start=+--+ end=+--+111endif112syn region smilComment start=+<!DOCTYPE+ keepend end=+>+113 114" Define the default highlighting.115" Only when an item doesn't have highlighting yet116 117hi def link smilTag Function118hi def link smilEndTag Identifier119hi def link smilArg Type120hi def link smilTagName smilStatement121hi def link smilSpecialTagName Exception122hi def link smilValue Value123hi def link smilSpecialChar Special124 125hi def link smilSpecial Special126hi def link smilSpecialChar Special127hi def link smilString String128hi def link smilStatement Statement129hi def link smilComment Comment130hi def link smilCommentPart Comment131hi def link smilPreProc PreProc132hi def link smilValue String133hi def link smilCommentError smilError134hi def link smilTagError smilError135hi def link smilError Error136 137 138let b:current_syntax = "smil"139 140if main_syntax == 'smil'141 unlet main_syntax142endif143 144let &cpo = s:cpo_save145unlet s:cpo_save146" vim: ts=8147 