make the parser accept chained caps, too
authorBenjamin Otte <otte@gnome.org>
Sun, 18 May 2003 02:30:00 +0000 (02:30 +0000)
committerBenjamin Otte <otte@gnome.org>
Sun, 18 May 2003 02:30:00 +0000 (02:30 +0000)
Original commit message from CVS:
make the parser accept chained caps, too

gst/parse/parse.l

index 71d978c..b474697 100644 (file)
@@ -39,10 +39,11 @@ _ref {_identifier}"."{_identifier}?
 _binref {_identifier}[[:space:]]*"."[[:space:]]*"("
 
 /* links */
-_capschar ("\\".)|([^[:space:]!.,;()\]\[])
+_capschar ("\\".)|([^[:space:]\;!\.\,\(\)\]\[])
 _capsstring {_capschar}+|("\""([^\"]|"\\\"")*"\"")|("'"([^']|"\\\"")*"'")
 _mimetype ({_capschar}+"/"{_capschar}+)|("\""([^\"]|"\\\"")*"\"")|("'"([^']|"\\\"")*"'")
-_link ("!"[[:space:]]*{_mimetype}(","([^!]|{_capsstring})+)?[[:space:]]*"!")|("!")
+_caps {_mimetype}(","[^!]|{_capsstring})*
+_link ("!"[[:space:]]*{_caps}([[:space:]]*";"[[:space:]]*{_caps})*[[:space:]]*"!")|("!")
 
 %x value
 %option noyywrap