Accept the + character as part of filenames for MRI scripts.

This commit is contained in:
Nick Clifton
2022-03-31 15:43:42 +01:00
parent 5530c021ce
commit add0eb9d6e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2022-03-31 Nick Clifton <nickc@redhat.com>
* arlex.l: Accept the plus character as part of a filename.
2022-03-16 Fangrui Song <maskray@google.com> 2022-03-16 Fangrui Song <maskray@google.com>
PR binutils/28926 PR binutils/28926

View File

@ -78,7 +78,7 @@ int linenumber;
"(" { return '('; } "(" { return '('; }
")" { return ')'; } ")" { return ')'; }
"," { return ','; } "," { return ','; }
[A-Za-z0-9/\\$:.\-\_]+ { [A-Za-z0-9/\\$:.\-\_\+]+ {
yylval.name = xstrdup (yytext); yylval.name = xstrdup (yytext);
return FILENAME; return FILENAME;
} }