Commit b84289f9 b84289f95f7c80e302b80af2bd2d2a4bb808fbcb by Sergey Poznyakoff

Resolve a conflict between the angle bracket

indicating file inclusion and the one starting a valid
RFC822 address.
1 parent e64ddc4d
......@@ -345,12 +345,18 @@ WORD [^ \t\n,:;<+=\*]+
return STRING;}
{WS} ;
{WORD} { yylval.string = strdup (yytext); return STRING;}
"<"{WS}{WORD} { char *p;
for (p = yytext + 1; p < yytext + yyleng; p++)
^{WS}?"<"{WS}?{WORD} { char *p;
for (p = yytext; p < yytext + yyleng && isblank(*p); p++)
;
for (p++; p < yytext + yyleng; p++)
if (!isspace (*p))
break;
push_source (p, 1); }
"<"{WORD} { yylval.string = xmalloc (yyleng + 2);
yylval.string[0] = '<';
memcpy(yylval.string, yytext, yyleng);
yylval.string[yyleng+1] = 0;
return STRING;}
=|\*|\+|,|:|\; return yytext[0];
. { char *p;
asprintf (&p,
......