diff lisp/font-lock.el @ 294:4b85ae5eabfb r21-0b45

Import from CVS: tag r21-0b45
author cvs
date Mon, 13 Aug 2007 10:38:01 +0200
parents 90d73dddcdc4
children 9ea74add5d37
line wrap: on
line diff
--- a/lisp/font-lock.el	Mon Aug 13 10:37:16 2007 +0200
+++ b/lisp/font-lock.el	Mon Aug 13 10:38:01 2007 +0200
@@ -1991,7 +1991,7 @@
   ;; with optional whitespace and a "(".  Everything following the item (but
   ;; belonging to it) is expected to by skip-able by `forward-sexp', and items
   ;; are expected to be separated with a "," or ";".
-  (if (looking-at "[ \t*&]*\\(\\sw+\\)\\(::\\(\\sw+\\)\\)?[ \t]*\\((\\)?")
+  (if (looking-at "[ \t*&]*\\(\\(?:\\sw\\|\\s_\\)+\\)\\(::\\(\\(?:\\sw\\|\\s_\\)+\\)\\)?[ \t]*\\((\\)?")
       (save-match-data
 	(condition-case nil
 	    (save-restriction