1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-23 22:20:24 -08:00

* lisp/emacs-lisp/ert.el (ert--activate-font-lock-keywords): Allow dashes in

the names.

Fixes: debbugs:16620
This commit is contained in:
Anders Lindgren 2014-02-04 12:37:08 -05:00 committed by Stefan Monnier
parent 8101203ad7
commit 08e4189736
2 changed files with 10 additions and 7 deletions

View 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)))))