[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]*="
- [nongnu] branch elpa/nix-mode created (now 00b2b8da57), ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode e898255861 006/500: Use setq-local everywhere, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 14c3476ba9 020/500: Custom line indenter., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode b4b7edb246 012/500: Move some builtins to warnings.,
ELPA Syncer <=
- [nongnu] elpa/nix-mode 22500b7f72 038/500: fix tabbing, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode d8b088a4e2 034/500: Disable string indenting again, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3ad8e224d7 043/500: Use looking-back for hanging indent., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ec9cf2f4e5 061/500: Remove nix-syntax-propertize-escaped-antiquote., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode c339fc9062 072/500: More small nitpicks., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1cc3cffa29 060/500: Pick up extra "let" found in acme.nix., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1772d1f0db 077/500: Fixup syntax entry., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode fa7a4a0d4d 078/500: Update README.md, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9015ef6603 029/500: check beginning for comment indent, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0ada62bbee 091/500: Merge pull request #11 from matthewbauer/completion, ELPA Syncer, 2022/01/29