[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16480: 24.3.50; fontification in the definition of ert tests names d
From: |
Nicolas Richard |
Subject: |
bug#16480: 24.3.50; fontification in the definition of ert tests names does not highlight full symbol |
Date: |
Fri, 17 Jan 2014 10:43:09 +0100 |
Hello,
Running:
emacs -Q -l ert testfile.el
with the following content of testfile.el:
(ert-deftest latex-movement ...)
(defun latex-movement ...)
will highlight only 'latex' in the first line, instead of the whole
symbol 'latex-movement'. Second line is just there to check that it
works for defun.
Here's a fix:
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index 4b11860..ee058a8 100644
--- a/lisp/emacs-lisp/ert.el
+++ b/lisp/emacs-lisp/ert.el
@@ -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)))))
--
Nico.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#16480: 24.3.50; fontification in the definition of ert tests names does not highlight full symbol,
Nicolas Richard <=