binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post characters

for name tokens. PR/5529.
This commit is contained in:
Kai Tietz 2008-01-08 09:10:47 +00:00
parent 9396508db2
commit aeafac0cd3
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-01-08 Kai Tietz <kai.tietz@onevision.com>
* binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post
characters for name tokens. PR/5529.
2008-01-04 Greg McGary <greg@mcgary.org>
* prdbg.c (print_vma): Print as long long, if host supports it.

View file

@ -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)