[vlc-commits] codec: webvtt: css: tokenize missing attribute selectors
Francois Cartegnie
git at videolan.org
Mon Oct 28 13:36:20 CET 2019
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Oct 26 20:04:21 2019 +0200| [1cb7740a133bea385537ad6c34c2a3062dec1c12] | committer: Francois Cartegnie
codec: webvtt: css: tokenize missing attribute selectors
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1cb7740a133bea385537ad6c34c2a3062dec1c12
---
modules/codec/webvtt/CSSLexer.l | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/webvtt/CSSLexer.l b/modules/codec/webvtt/CSSLexer.l
index 400131782a..fd4f56475c 100644
--- a/modules/codec/webvtt/CSSLexer.l
+++ b/modules/codec/webvtt/CSSLexer.l
@@ -66,6 +66,9 @@ range \?{1,6}|{h}(\?{0,5}|{h}(\?{0,4}|{h}(\?{0,3}|{h}(\?{0,2}|{h}(\??|{h})))))
"-->" {return CDC;}
"~=" {return INCLUDES;}
"|=" {return DASHMATCH;}
+"^=" {return BEGINSWITH;}
+"$=" {return ENDSWITH;}
+"*=" {return CONTAINS;}
{string} { yylval->string = vlc_css_unquotedunescaped(yytext); return STRING;}
More information about the vlc-commits
mailing list