diff lisp/generic.el @ 57113:5bd3a1e1dfe5

Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-549 Use symbol-matching for generic-mode keywords 2004-09-15 Miles Bader <miles@gnu.org> * lisp/generic.el (generic-make-keywords-list): Use symbol rather than word anchors in regexp.
author Miles Bader <miles@gnu.org>
date Wed, 15 Sep 2004 04:04:10 +0000
parents 7cb75f6a290a
children 9aacf8e5ae58 566253900690
line wrap: on
line diff
--- a/lisp/generic.el	Wed Sep 15 00:28:04 2004 +0000
+++ b/lisp/generic.el	Wed Sep 15 04:04:10 2004 +0000
@@ -405,10 +405,10 @@
 The regexp is highlighted with FACE."
   (unless (listp keywords-list)
     (error "Keywords argument must be a list of strings"))
-  (list (concat prefix "\\<"
+  (list (concat prefix "\\_<"
 		;; Use an optimized regexp.
 		(regexp-opt keywords-list t)
-		"\\>" suffix)
+		"\\_>" suffix)
 	1
 	face))