make the parser accept chained caps, too

Original commit message from CVS:
make the parser accept chained caps, too
This commit is contained in:
Benjamin Otte 2003-05-18 02:30:00 +00:00
parent 439b5101ba
commit 012cb2cb6f

View 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