about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-06-18T10·04+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-06-18T10·04+0000
commita2fc3a53ba87d3688dae0554bfdb2fe3fb3dbf2a (patch)
tree1d05b333964d6154537093d15e3c64ef942af39a
parentd53603c928ae98eee54bdd06241e898e02efef0c (diff)
* Highlight URLs containing "=" properly.
-rw-r--r--misc/emacs/nix-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/emacs/nix-mode.el b/misc/emacs/nix-mode.el
index 9d4d1b894a0f..96dc975ec654 100644
--- a/misc/emacs/nix-mode.el
+++ b/misc/emacs/nix-mode.el
@@ -76,10 +76,10 @@ The hook `nix-mode-hook' is run when Nix mode is started.
     ("\\<baseNameOf\\>" . font-lock-builtin-face)
     ("\\<toString\\>" . font-lock-builtin-face)
     ("\\<isNull\\>" . font-lock-builtin-face)
-    ("\\<\\([a-zA-Z_][a-zA-Z0-9_'\.]*\\)[ \t]*="
-     (1 font-lock-variable-name-face nil nil))
     ("[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)
     ))