branch: elpa/nix-mode
commit b4b7edb2460da569ef49ab8b661912cec23052a7
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
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]*="