emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/nix-mode 281bfc1abf 176/500: Cleanup font-locks again


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 281bfc1abf 176/500: Cleanup font-locks again
Date: Sat, 29 Jan 2022 08:27:04 -0500 (EST)

branch: elpa/nix-mode
commit 281bfc1abf01d05ddc1a173f9d2e75167d2eb577
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>

    Cleanup font-locks again
---
 nix-mode.el | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/nix-mode.el b/nix-mode.el
index 5bc6170c3e..6f32252b93 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -33,12 +33,12 @@
 (defface nix-keyword-face
   '((t :inherit font-lock-keyword-face))
   "Face used to highlight Nix keywords."
-  :group 'haskell-faces)
+  :group 'nix-faces)
 
 (defface nix-keyword-warning-face
   '((t :inherit font-lock-warning-face))
   "Face used to highlight Nix warning keywords."
-  :group 'haskell-faces)
+  :group 'nix-faces)
 
 (defface nix-builtin-face
   '((t :inherit font-lock-builtin-face))
@@ -98,14 +98,14 @@
 
 (defconst nix-font-lock-keywords
   `(
-    (,(regexp-opt nix-keywords 'symbols) . nix-keyword-face)
-    (,(regexp-opt nix-warning-keywords 'symbols) . nix-keyword-warning-face)
-    (,(regexp-opt nix-builtins 'symbols) . nix-builtin-face)
-    (,nix-re-url . nix-constant-face)
-    (,nix-re-file-path . nix-constant-face)
-    (,nix-re-variable-assign 1 nix-attribute-face)
-    (,nix-re-bracket-path . nix-constant-face)
-    (nix--syntax-match-antiquote 0 nix-antiquote-face t)
+    (,(regexp-opt nix-keywords 'symbols) 0 'nix-keyword-face)
+    (,(regexp-opt nix-warning-keywords 'symbols) 0 'nix-keyword-warning-face)
+    (,(regexp-opt nix-builtins 'symbols) 0 'nix-builtin-face)
+    (,nix-re-url 0 'nix-constant-face)
+    (,nix-re-file-path 0 'nix-constant-face)
+    (,nix-re-variable-assign 1 'nix-attribute-face)
+    (,nix-re-bracket-path 0 'nix-constant-face)
+    (nix--syntax-match-antiquote 0 'nix-antiquote-face t)
     )
   "Font lock keywords for nix.")
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]