Add webvtt1.vim

This syntax file is for WebVTT: The Web Video Text Tracks Format.

This resolves part of #55. `:past` and `:future` is not support, because
they are used only in parentheses of `cue()`, and current CSS syntax
does not support a highlighting in parentheses of pseudo functions.
This commit is contained in:
Kyo Nagashima
2017-10-17 18:53:00 +09:00
parent 5b1d5676eb
commit 289619aa56
4 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
syn match cssPseudoClassId contained "::\<cue\(-region\)\=\>"
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start="::cue\(-region\)\=(" end=")" oneline

View File

@@ -76,4 +76,5 @@ syn include @htmlCss syntax/css/selectors.vim
syn include @htmlCss syntax/css/selectors4.vim
syn include @htmlCss syntax/css/svg2.vim
syn include @htmlCss syntax/css/web-animations-1.vim
syn include @htmlCss syntax/css/webvtt1.vim
syn include @htmlCss syntax/css/worklets-1.vim