mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-04-24 14:53:34 +08:00
* arlex.l: Make work with lex, for what it's worth.
This commit is contained in:
parent
11ad114b76
commit
31f62b8976
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user