binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post characters
authorKai Tietz <kai.tietz@onevision.com>
Tue, 8 Jan 2008 09:10:47 +0000 (09:10 +0000)
committerKai Tietz <kai.tietz@onevision.com>
Tue, 8 Jan 2008 09:10:47 +0000 (09:10 +0000)
for name tokens. PR/5529.

binutils/ChangeLog
binutils/rclex.c

index 25e9ff2..d3c1d32 100644 (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.
index 5922106..29f365f 100644 (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)