branch: elpa/nix-mode
commit aa43b72a45c391720a91d57345b138f6c526732e
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
Revert "Use warning font lock for upper case vars"
This reverts commit 86b7195b3e0597b28e92ebba36568676ad9f1916.
---
nix-mode.el | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/nix-mode.el b/nix-mode.el
index 006139e0b9..5696a19de2 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -70,15 +70,10 @@
("\\_<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]*="
- (1 font-lock-warning-face nil nil)) ;; capitalized
- ("\\<\\([a-z][a-zA-Z0-9_'\-\.]*\\)[ \t]*="
- (1 font-lock-variable-name-face nil nil)) ;; uncapitalized
-
("[a-zA-Z][a-zA-Z0-9\\+-\\.]*:[a-zA-Z0-9%/\\?:@&=\\+\\$,_\\.!~\\*'-]+"
. font-lock-constant-face)
+ ("\\<\\([a-zA-Z_][a-zA-Z0-9_'\-\.]*\\)[ \t]*="
+ (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._\\+-]+\\)+"