branch: elpa/nix-mode
commit 7a97635267d77174e6b0533531847a96a75ef337
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
Move to nix-re-file-path
---
nix-mode.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/nix-mode.el b/nix-mode.el
index 1a58089713..e805a8f56f 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -55,6 +55,9 @@
(defconst nix-warning-keywords
'("assert" "abort" "throw"))
+(defconst nix-re-file-path
+ "[a-zA-Z0-9._\\+-]*\\(/[a-zA-Z0-9._\\+-]+\\)+")
+
(defconst nix-font-lock-keywords
`(
(,(regexp-opt nix-keywords 'symbols) . font-lock-keyword-face)
@@ -69,7 +72,7 @@
(1 font-lock-variable-name-face nil nil))
("<[a-zA-Z0-9._\\+-]+\\(/[a-zA-Z0-9._\\+-]+\\)*>"
. font-lock-constant-face)
- ("[a-zA-Z0-9._\\+-]*\\(/[a-zA-Z0-9._\\+-]+\\)+"
+ (,nix-re-file-path
. font-lock-constant-face)
(nix-syntax-match-antiquote 0 font-lock-preprocessor-face t)
)