projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21dfa6d
)
Improvements to ninja-mode
author
Humza
<contact@secondplanetanimation.com>
Sun, 13 Nov 2011 16:30:10 +0000
(11:30 -0500)
committer
Humza
<contact@secondplanetanimation.com>
Sun, 13 Nov 2011 16:30:10 +0000
(11:30 -0500)
* provide ninja-mode feature
* highlight rule names
misc/ninja-mode.el
patch
|
blob
|
history
diff --git
a/misc/ninja-mode.el
b/misc/ninja-mode.el
index
0ae925a
..
ff62e92
100644
(file)
--- a/
misc/ninja-mode.el
+++ b/
misc/ninja-mode.el
@@
-24,6
+24,8
@@
'("\\([[:alnum:]_]+\\) =" . (1 font-lock-variable-name-face))
;; Variable expansion.
'("\\($[[:alnum:]_]+\\)" . (1 font-lock-variable-name-face))
+ ;; Rule names
+ '("rule \\([[:alnum:]_]+\\)" . (1 font-lock-function-name-face))
))
(define-derived-mode ninja-mode fundamental-mode "ninja"
(setq comment-start "#")
@@
-31,3
+33,5
@@
; quoted strings highlighted.
(setq font-lock-defaults '(ninja-keywords t))
)
+
+(provide 'ninja-mode)