From add0eb9d6e731e08a0bc2463d8c1f0acb02894a0 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 31 Mar 2022 15:43:42 +0100 Subject: [PATCH] Accept the + character as part of filenames for MRI scripts. --- binutils/ChangeLog | 4 ++++ binutils/arlex.l | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index f84323953d6..81f74f5b2e6 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2022-03-31 Nick Clifton + + * arlex.l: Accept the plus character as part of a filename. + 2022-03-16 Fangrui Song PR binutils/28926 diff --git a/binutils/arlex.l b/binutils/arlex.l index a43a6214b3d..145b9e16773 100644 --- a/binutils/arlex.l +++ b/binutils/arlex.l @@ -78,7 +78,7 @@ int linenumber; "(" { return '('; } ")" { return ')'; } "," { return ','; } -[A-Za-z0-9/\\$:.\-\_]+ { +[A-Za-z0-9/\\$:.\-\_\+]+ { yylval.name = xstrdup (yytext); return FILENAME; } -- 2.30.2