summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2014-11-23 20:14:02 (GMT)
committerEvan Martin <martine@danga.com>2014-11-23 20:14:02 (GMT)
commit2ab60038b60c8e89ff5ccc7aaf8028f3d7acf4ee (patch)
treee4e7722fc588b5a9feaf072c54d82460750e0311 /misc
parentc528af904dbeeeb1ddaab7d66bcec68c069e0681 (diff)
parent4e0e6c58b4dd43b3f7fa28d66e0f98bda85d7495 (diff)
downloadNinja-2ab60038b60c8e89ff5ccc7aaf8028f3d7acf4ee.zip
Ninja-2ab60038b60c8e89ff5ccc7aaf8028f3d7acf4ee.tar.gz
Ninja-2ab60038b60c8e89ff5ccc7aaf8028f3d7acf4ee.tar.bz2
Merge pull request #772 from drbo/syntax_bugfix
Added highlighting in Emacs for ${...} variables
Diffstat (limited to 'misc')
-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 187c6b3..ee5fe48 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))
;; Build Statement - highlight the rule used,