* arlex.l: Make work with lex, for what it's worth.

This commit is contained in:
Per Bothner 1992-05-22 20:41:25 +00:00
parent 11ad114b76
commit 31f62b8976
1 changed files with 6 additions and 1 deletions

View File

@ -66,7 +66,7 @@ int linenumber;
"(" { return '('; }
")" { return ')'; }
"," { return ','; }
[A-Za-z0-9/$:.\-]+ {
[A-Za-z0-9/$:.\-\_]+ {
yylval.name = strdup(yytext);
return FILENAME;
}
@ -75,3 +75,8 @@ int linenumber;
" " { }
"\n" { linenumber ++; return NEWLINE; }
%%
#ifndef yywrap
/* Needed for lex, though not flex. */
int yywrap() { return 1; }
#endif