branch: elpa/nix-mode
commit 24e82811499f3a916005b83efdf7a92a77740dfd
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
Refactor keywords
---
nix-mode.el | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/nix-mode.el b/nix-mode.el
index b0a930642f..006139e0b9 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -37,8 +37,17 @@
t))))
(defconst nix-font-lock-keywords
- '("\\_<if\\_>" "\\_<then\\_>" "\\_<else\\_>" "\\_<with\\_>"
- "\\_<let\\_>" "\\_<in\\_>" "\\_<rec\\_>" "\\_<inherit\\_>" "\\_<or\\_>"
+ '(
+ ;; keywords
+ ("\\_<if\\_>" . font-lock-keyword-face)
+ ("\\_<then\\_>" . font-lock-keyword-face)
+ ("\\_<else\\_>" . font-lock-keyword-face)
+ ("\\_<with\\_>" . font-lock-keyword-face)
+ ("\\_<let\\_>" . font-lock-keyword-face)
+ ("\\_<in\\_>" . font-lock-keyword-face)
+ ("\\_<rec\\_>" . font-lock-keyword-face)
+ ("\\_<inherit\\_>" . font-lock-keyword-face)
+ ("\\_<or\\_>" . font-lock-keyword-face)
;; builtin functions
;; taken from http://nixos.org/nix/manual/#ssec-builtins