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

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

[nongnu] elpa/nix-mode b4b7edb246 012/500: Move some builtins to warning


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode b4b7edb246 012/500: Move some builtins to warnings.
Date: Sat, 29 Jan 2022 08:26:26 -0500 (EST)

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

    Move some builtins to warnings.
---
 nix-mode.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/nix-mode.el b/nix-mode.el
index 14e2bf8ca2..b0a930642f 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -37,13 +37,11 @@
         t))))
 
 (defconst nix-font-lock-keywords
-  '("\\_<if\\_>" "\\_<then\\_>" "\\_<else\\_>" "\\_<assert\\_>" "\\_<with\\_>"
+  '("\\_<if\\_>" "\\_<then\\_>" "\\_<else\\_>" "\\_<with\\_>"
     "\\_<let\\_>" "\\_<in\\_>" "\\_<rec\\_>" "\\_<inherit\\_>" "\\_<or\\_>"
 
-
     ;; builtin functions
     ;; taken from http://nixos.org/nix/manual/#ssec-builtins
-    ("\\_<abort\\_>" . font-lock-builtin-face)
     ("\\_<builtins\\(\.[a-zA-Z]+\\)?\\_>" . font-lock-builtin-face)
     ("\\_<baseNameOf\\_>" . font-lock-builtin-face)
     ("\\_<derivation\\_>" . font-lock-builtin-face)
@@ -55,10 +53,14 @@
     ("\\_<map\\_>" . font-lock-builtin-face)
     ("\\_<null\\_>" . font-lock-builtin-face)
     ("\\_<removeAttrs\\_>" . font-lock-builtin-face)
-    ("\\_<throw\\_>" . font-lock-builtin-face)
     ("\\_<toString\\_>" . font-lock-builtin-face)
     ("\\_<true\\_>" . font-lock-builtin-face)
 
+    ;; warnings
+    ("\\_<assert\\_>" . font-lock-warning-face)
+    ("\\_<abort\\_>" . font-lock-warning-face)
+    ("\\_<throw\\_>" . font-lock-warning-face)
+
     ;; variable assignments
     ;; warn on upper case variable names
     ("\\<\\([A-Z_][a-zA-Z0-9_'\-\.]*\\)[ \t]*="



reply via email to

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