changeset 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 4c14357ffc27
children deddb5e7acc3 566253900690
files lisp/ChangeLog lisp/generic.el
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Sep 15 00:28:04 2004 +0000
+++ b/lisp/ChangeLog	Wed Sep 15 04:04:10 2004 +0000
@@ -1,3 +1,8 @@
+2004-09-15  Miles Bader  <miles@gnu.org>
+
+	* generic.el (generic-make-keywords-list): Use symbol rather than
+	word anchors in regexp.
+
 2004-09-14  Sean O'Rourke  <sorourke@cs.ucsd.edu>
 
 	* ibuf-ext.el (define-ibuffer-filter filename): If buffer has
--- 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))