diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-06-30 02:17:49 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-06-30 02:17:49 (GMT) |
commit | 0917ff862bc54626b68bcdc208551e9ab17a2e4a (patch) | |
tree | e793f60759977110ced2c54286dc8aaed210b354 | |
parent | 54e58818b49b337867b79fa643b6e7d075b259ee (diff) | |
parent | 781aa24ba5251e6225c72a3cc74b77b7a50504b1 (diff) | |
download | Ninja-0917ff862bc54626b68bcdc208551e9ab17a2e4a.zip Ninja-0917ff862bc54626b68bcdc208551e9ab17a2e4a.tar.gz Ninja-0917ff862bc54626b68bcdc208551e9ab17a2e4a.tar.bz2 |
Merge pull request #788 from donkopotamus/patch-2
Add highlighting of rule in build statements
-rw-r--r-- | misc/ninja-mode.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/ninja-mode.el b/misc/ninja-mode.el index 36ada6f..80585d8 100644 --- a/misc/ninja-mode.el +++ b/misc/ninja-mode.el @@ -32,7 +32,11 @@ ;; Variable expansion. '("\\($[[:alnum:]_]+\\)" . (1 font-lock-variable-name-face)) ;; Rule names - '("rule \\([[:alnum:]_-]+\\)" . (1 font-lock-function-name-face)) + '("rule +\\([[:alnum:]_.-]+\\)" . (1 font-lock-function-name-face)) + ;; Build Statement - highlight the rule used, allow for escaped $,: in outputs + '("build +\\(?:[^:$\n]\\|$[:$]\\)+ *: *\\([[:alnum:]_.-]+\\)" . + (1 font-lock-function-name-face)) + )) ;;;###autoload |