Merge pull request #813 from cdlm/emacs-mode-require-newline
authorEvan Martin <martine@danga.com>
Tue, 18 Nov 2014 17:44:38 +0000 (09:44 -0800)
committerEvan Martin <martine@danga.com>
Tue, 18 Nov 2014 17:44:38 +0000 (09:44 -0800)
Emacs mode: inherit from prog-mode

1  2 
misc/ninja-mode.el

         '("\\($[[: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.