fix caps parsing. Some evil person (me?\!) disallowed the dot as a character in caps
authorBenjamin Otte <otte@gnome.org>
Sun, 14 Dec 2003 04:28:11 +0000 (04:28 +0000)
committerBenjamin Otte <otte@gnome.org>
Sun, 14 Dec 2003 04:28:11 +0000 (04:28 +0000)
Original commit message from CVS:
fix caps parsing. Some evil person (me?\!) disallowed the dot as a character in caps

gst/parse/parse.l

index 95fb0c5..761f2ee 100644 (file)
@@ -42,9 +42,10 @@ _ref {_identifier}"."{_identifier}?
 _binref {_identifier}[[:space:]]*"."[[:space:]]*"("
 
 /* links */
-_capschar ("\\".)|([^[:space:]\;!\.\,\(\)\]\[])
+_mimechar ([[:alnum:]-])
+_mimetype ({_mimechar}+"/"{_mimechar}+)|("\""([^\"]|"\\\"")*"\"")|("'"([^']|"\\\"")*"'")
+_capschar ("\\".)|([^[:space:]\;!\,\(\)\]\[])
 _capsstring {_capschar}+|("\""([^\"]|"\\\"")*"\"")|("'"([^']|"\\\"")*"'")
-_mimetype ({_capschar}+"/"{_capschar}+)|("\""([^\"]|"\\\"")*"\"")|("'"([^']|"\\\"")*"'")
 _caps {_mimetype}(","[^!]|{_capsstring})*
 _link ("!"[[:space:]]*{_caps}([[:space:]]*";"[[:space:]]*{_caps})*[[:space:]]*"!")|("!")