emacs: highlight variable expansions too
authorEvan Martin <martine@danga.com>
Sun, 22 May 2011 17:28:09 +0000 (10:28 -0700)
committerEvan Martin <martine@danga.com>
Sun, 22 May 2011 17:28:09 +0000 (10:28 -0700)
misc/ninja-mode.el

index 82595f09113be00b243fac066198afef806b837a..0ae925a343bf641e953a97b009c8a573ef7b657c 100644 (file)
@@ -22,6 +22,8 @@
                                      'words))
              font-lock-keyword-face)
        '("\\([[:alnum:]_]+\\) =" . (1 font-lock-variable-name-face))
+       ;; Variable expansion.
+       '("\\($[[:alnum:]_]+\\)" . (1 font-lock-variable-name-face))
        ))
 (define-derived-mode ninja-mode fundamental-mode "ninja"
   (setq comment-start "#")