From 91e0f9ff96cc688c48973696d7d1dd2f4e356e3e Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Sun, 22 May 2011 10:28:09 -0700 Subject: emacs: highlight variable expansions too --- misc/ninja-mode.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/ninja-mode.el b/misc/ninja-mode.el index 82595f0..0ae925a 100644 --- a/misc/ninja-mode.el +++ b/misc/ninja-mode.el @@ -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 "#") -- cgit v0.12