]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Remove use-package-font-lock-keywords"
authorJohn Wiegley <johnw@newartisans.com>
Fri, 19 Aug 2022 05:53:04 +0000 (22:53 -0700)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 19 Aug 2022 05:53:04 +0000 (22:53 -0700)
This reverts commit 4938167bfffcf08279445827d2eaae78c9557675.

lisp/use-package/use-package-core.el

index 0734dcf1c807bb1bdb6ee15d9bf6a1af39a1ae4d..ab35131e4f4380e802339d0b5a9650ad3853aaa7 100644 (file)
@@ -328,6 +328,13 @@ Must be set before loading use-package."
       (set-default sym value))
   :group 'use-package)
 
+(defconst use-package-font-lock-keywords
+  '(("(\\(use-package\\)\\_>[ \t']*\\(\\(?:\\sw\\|\\s_\\)+\\)?"
+     (1 font-lock-keyword-face)
+     (2 font-lock-constant-face nil t))))
+
+(font-lock-add-keywords 'emacs-lisp-mode use-package-font-lock-keywords)
+
 (defcustom use-package-compute-statistics nil
   "If non-nil, compute statistics concerned use-package declarations.
 View the statistical report using `use-package-report'. Note that