       (forward-sexp)
       (setq end (point))
       (setq tag-pos (list beg end))
-      (unless (search-forward-regexp "\\s-+\\(?:\\(\\sw+\\|\\s.+\\)\\s-+\\)?\\({\\)" nil t)
+      (unless (search-forward-regexp "\\s-+\\([A-Za-z0-9:_]+\\s-+\\)?\\({\\)" nil t)
         (error "error parsing namespace"))
       ;; get bounds of opening delimiter `{'
       (goto-char (match-beginning 2))

      (setq title (match-string-no-properties 1)) ;may have whitespace
      (setq beg (match-beginning 1))
      (setq end (match-end 1))
      (if (and title (string-trim title)) ;string-trim alters match-data
          (setq name-pos (list beg end))
        (setq name-pos (list (1+ (cadr tag-pos)) (1+ (cadr tag-pos))))
        (setq title outre-anon-name))

;; Author: Dan Harms <danielrharms@gmail.com>
;; Created: Wednesday, June  1, 2016
;; Version: 1.0
;; Modified Time-stamp: <2016-09-12 08:22:00 dharms>
;; Modified by: Dan Harms
;; Keywords: c++ namespace

