aboutsummaryrefslogtreecommitdiff
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
commitaeafac0cd393cbb01b78e71cdd6268d12950c48a (patch)
tree1253042abe60afff0b6f3baf82d5a8707ed78175 /binutils/rclex.c
parent9396508db2edbe0bf16cab534c07037b112908e4 (diff)
downloadgdb-aeafac0cd393cbb01b78e71cdd6268d12950c48a.zip
gdb-aeafac0cd393cbb01b78e71cdd6268d12950c48a.tar.gz
gdb-aeafac0cd393cbb01b78e71cdd6268d12950c48a.tar.bz2
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 5922106..29f365f 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)