diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2008-01-08 09:10:47 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2008-01-08 09:10:47 +0000 |
commit | 62835343301bd6dcdea97472e896a67eb7212d10 (patch) | |
tree | 53f852c61266eabfd8101c29b0e12fb2324c4e45 | |
parent | 20aae239f717ea4b562ef0622ad713970a5cd1ef (diff) | |
download | binutils-redhat-62835343301bd6dcdea97472e896a67eb7212d10.tar.gz |
binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post characters
for name tokens. PR/5529.
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/rclex.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 25e9ff29fe..d3c1d32c77 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -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. 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) |