From aeafac0cd393cbb01b78e71cdd6268d12950c48a Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Tue, 8 Jan 2008 09:10:47 +0000 Subject: [PATCH] binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post characters for name tokens. PR/5529. --- binutils/ChangeLog | 5 +++++ binutils/rclex.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 25e9ff29fe1..d3c1d32c770 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2008-01-08 Kai Tietz + + * binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post + characters for name tokens. PR/5529. + 2008-01-04 Greg McGary * prdbg.c (print_vma): Print as long long, if host supports it. diff --git a/binutils/rclex.c b/binutils/rclex.c index 5922106a0e4..29f365f310a 100644 --- a/binutils/rclex.c +++ b/binutils/rclex.c @@ -844,7 +844,11 @@ yylex (void) default: if (ISIDST (ch) || ch=='$') { - while ((ch = rclex_peekch ()) != -1 && (ISIDNUM (ch) || ch == '$' || ch == '.')) + while ((ch = rclex_peekch ()) != -1 + && (ISIDNUM (ch) || ch == '$' || ch == '.' + || ch == ':' || ch == '\\' || ch == '/' + || ch == '_') + ) rclex_readch (); ch = IGNORE_CPP (rclex_translatekeyword (rclex_tok)); if (ch == STRING) -- 2.30.2