diff options
-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 |