summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDemetri Obenour <demetriobenour@gmail.com>2014-06-01 15:29:18 (GMT)
committerDemetri Obenour <demetriobenour@gmail.com>2014-06-01 15:29:18 (GMT)
commit44a0d08a5215f949ae81014f5c5a283918e14a3b (patch)
treeacef911021cc80faa4eb18934bcef34b1ecae538
parent2cfffd60c41c166d34907154b2935d60ffb2a62b (diff)
downloadNinja-44a0d08a5215f949ae81014f5c5a283918e14a3b.zip
Ninja-44a0d08a5215f949ae81014f5c5a283918e14a3b.tar.gz
Ninja-44a0d08a5215f949ae81014f5c5a283918e14a3b.tar.bz2
Added highlighting in Emacs for ${...} variables
-rw-r--r--misc/ninja-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/ninja-mode.el b/misc/ninja-mode.el
index 9fe6fc8..777d4ad 100644
--- a/misc/ninja-mode.el
+++ b/misc/ninja-mode.el
@@ -31,6 +31,7 @@
'("\\([[:alnum:]_]+\\) =" . (1 font-lock-variable-name-face))
;; Variable expansion.
'("\\($[[:alnum:]_]+\\)" . (1 font-lock-variable-name-face))
+ '("\\(${[[:alnum:]_]+}\\)" . (1 font-lock-variable-name-face))
;; Rule names
'("rule \\([[:alnum:]_]+\\)" . (1 font-lock-function-name-face))
))