'("\\($[[:alnum:]_]+\\)" . (1 font-lock-variable-name-face))
;; Rule names
'("rule +\\([[:alnum:]_.-]+\\)" . (1 font-lock-function-name-face))
- ;; Build Statement - highlight the rule used, allow for escaped $,: in outputs
+ ;; Build Statement - highlight the rule used,
+ ;; allow for escaped $,: in outputs.
'("build +\\(?:[^:$\n]\\|$[:$]\\)+ *: *\\([[:alnum:]_.-]+\\)" .
(1 font-lock-function-name-face))
-
))
- ;;;###autoload
- (define-derived-mode ninja-mode fundamental-mode "ninja"
+ ;;;###autoload
+ (define-derived-mode ninja-mode prog-mode "ninja"
(setq comment-start "#")
; Pass extra "t" to turn off syntax-based fontification -- we don't want
; quoted strings highlighted.