* lisp/emacs-lisp/ert.el (ert--activate-font-lock-keywords): Allow dashes in
authorAnders Lindgren <andlind@gmail.com>
Tue, 4 Feb 2014 17:37:08 +0000 (12:37 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 4 Feb 2014 17:37:08 +0000 (12:37 -0500)
the names.

Fixes: debbugs:16620

lisp/ChangeLog
lisp/emacs-lisp/ert.el

index a97860c..a710928 100644 (file)
@@ -1,9 +1,12 @@
+2014-02-04  Anders Lindgren  <andlind@gmail.com>
+
+       * emacs-lisp/ert.el (ert--activate-font-lock-keywords): Allow dashes in
+       the names (bug#16620).
+
 2014-02-03  Martin Rudalics  <rudalics@gmx.at>
 
-       * faces.el (window-divider): New default value.  Rewrite
-       doc-string.
-       (window-divider-first-pixel, window-divider-last-pixel): New
-       faces.
+       * faces.el (window-divider): New default value.  Rewrite doc-string.
+       (window-divider-first-pixel, window-divider-last-pixel): New faces.
 
 2014-02-03  Dmitry Gutov  <dgutov@yandex.ru>
 
@@ -34,8 +37,8 @@
 
 2014-02-02  Daniel Colascione  <dancol@dancol.org>
 
-       * help-at-pt.el (help-at-pt-string,help-at-pt-maybe-display): Also
-       try to display local help from just before point.
+       * help-at-pt.el (help-at-pt-string,help-at-pt-maybe-display):
+       Also try to display local help from just before point.
 
 2014-02-02  Alan Mackenzie  <bug-cc-mode@gnu.org>
 
index 4b11860..ee058a8 100644 (file)
@@ -1469,7 +1469,7 @@ the tests)."
   "Activate font-lock keywords for some of ERT's symbols."
   (font-lock-add-keywords
    nil
-   '(("(\\(\\<ert-deftest\\)\\>\\s *\\(\\sw+\\)?"
+   '(("(\\(\\<ert-deftest\\)\\>\\s *\\(\\(?:\\sw\\|\\s_\\)+\\)?"
       (1 font-lock-keyword-face nil t)
       (2 font-lock-function-name-face nil t)))))