From: Ting-Yu Lin Date: Fri, 13 Sep 2013 13:17:09 +0000 (+0800) Subject: Fix highlight use-package for Emacs snapshot X-Git-Tag: emacs-29.0.90~1306^2~15^2~443^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bbf2b5034b06e6ccbe223fa6cfdc2087d87985da;p=emacs.git Fix highlight use-package for Emacs snapshot 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 --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index fea1aea0fce..1e3efd9045b 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -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))))