]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix highlight use-package for Emacs snapshot
authorTing-Yu Lin <aethanyc@gmail.com>
Fri, 13 Sep 2013 13:17:09 +0000 (21:17 +0800)
committerTing-Yu Lin <aethanyc@gmail.com>
Fri, 13 Sep 2013 13:38:02 +0000 (21:38 +0800)
The commit 57f80d4 fixed the highlight by following the regexp as for
require. However in Emacs truck, it only highlights first part of the
package name.

This change follows the regexp for require on emacs truck. See line
2327 on font-lock.el in the following patch.
http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/111821

lisp/use-package/use-package.el

index fea1aea0fce5377f00cf1d1b0bd69c3bc05897ff..1e3efd9045bf7fefb0ceefc17137391a2e66c832 100644 (file)
@@ -661,7 +661,7 @@ For full documentation. please see commentary.
 (put 'use-package 'lisp-indent-function 1)
 
 (defconst use-package-font-lock-keywords
-  '(("(\\(use-package\\)\\_>[ \t']*\\(\\sw+\\)?"
+  '(("(\\(use-package\\)\\_>[ \t']*\\(\\(?:\\sw\\|\\s_\\)+\\)?"
      (1 font-lock-keyword-face)
      (2 font-lock-constant-face nil t))))