From bbf2b5034b06e6ccbe223fa6cfdc2087d87985da Mon Sep 17 00:00:00 2001 From: Ting-Yu Lin Date: Fri, 13 Sep 2013 21:17:09 +0800 Subject: [PATCH] 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 --- lisp/use-package/use-package.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))) -- 2.39.2