diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-03-08 22:20:10 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-03-08 22:20:10 +0000 |
commit | 26c3744021230873c1797bebde1db0ded2307b0a (patch) | |
tree | 48c864d516d45543dc1b48964fc212400f0ab987 | |
parent | 398e1c56a096593d3c8d868e8d8ea1f978922f34 (diff) | |
download | mailutils-26c3744021230873c1797bebde1db0ded2307b0a.tar.gz mailutils-26c3744021230873c1797bebde1db0ded2307b0a.tar.bz2 |
Bugfix: accept ',' as OR
-rw-r--r-- | mimeview/mimetypes.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mimeview/mimetypes.l b/mimeview/mimetypes.l index 5d5a90bcd..5ab05a765 100644 --- a/mimeview/mimetypes.l +++ b/mimeview/mimetypes.l @@ -91,7 +91,7 @@ WS [ \t]* prev_state = YYSTATE; BEGIN(HEX); } -<INITIAL>[^ \t<\\\n)+&]/[ \t\\\n)+&] { +<INITIAL>[^ \t<\\\n)+,&]/[ \t\\\n)+,&] { obstack_grow (&stack, yytext, yyleng); yylval.string.len = obstack_object_size (&stack); obstack_1grow (&stack, 0); @@ -124,7 +124,7 @@ WS [ \t]* "&&" return '+'; "||" return ','; /* Operators */ -"!"|"+"|"("|")"|"/" return yytext[0]; +"!"|"+"|","|"("|")"|"/" return yytext[0]; <ARGS>"," return yytext[0]; <ARGS>")" { BEGIN(INITIAL); return yytext[0]; } <INITIAL,ARGS,HEX>. { |