summaryrefslogtreecommitdiff
path: root/binutils/rclex.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2008-01-08 09:10:47 +0000
committerKai Tietz <kai.tietz@onevision.com>2008-01-08 09:10:47 +0000
commit62835343301bd6dcdea97472e896a67eb7212d10 (patch)
tree53f852c61266eabfd8101c29b0e12fb2324c4e45 /binutils/rclex.c
parent20aae239f717ea4b562ef0622ad713970a5cd1ef (diff)
downloadbinutils-redhat-62835343301bd6dcdea97472e896a67eb7212d10.tar.gz
binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post characters
for name tokens. PR/5529.
Diffstat (limited to 'binutils/rclex.c')
-rw-r--r--binutils/rclex.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/binutils/rclex.c b/binutils/rclex.c
index 5922106a0e..29f365f310 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)