diff options
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/recipe-mode.el | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/emacs/recipe-mode.el b/emacs/recipe-mode.el index c38008a..320d017 100644 --- a/emacs/recipe-mode.el +++ b/emacs/recipe-mode.el @@ -29,26 +29,16 @@ (setq recipe-highlights '( - ;; comment - ("^ *#+.*$" . 'font-lock-comment-delimiter-face) - ;; title - ("^ *@\\(.*\\)$" . (1 'font-lock-preprocessor-face)) - ;; duration - ("\\[\\(.+?\\)\\]" . (1 'font-lock-builtin-face)) - ;; quantity measurements - ("= *[[:digit:]/]+\\([ [:graph:]]+?\\)$" . (1 'font-lock-builtin-face)) - ;; variable in assignment - ("^\\(.+?\\)=.+?$" . (1 'font-lock-variable-name-face)) - ;; variable in ${} - ("\\${\\(.+?\\)}" . (1 'font-lock-variable-name-face)) - ;; single word variable - ("\\$\\([^ {\n]+\\)" . (1 'font-lock-variable-name-face)) - ;; step result - ("=>\\(.*\\)" . (1 'font-lock-variable-name-face)) - ;; include - ("^[ [:digit:]]*!" . 'font-lock-constant-face) - ;; symbols - ("@\\|-\\|>\\|+\\|=>" . 'font-lock-constant-face) + ("^ *#+.*$" . 'font-lock-comment-delimiter-face) ;; comment + ("^ *@\\(.*\\)$" . (1 'font-lock-preprocessor-face)) ;; title + ("\\[\\(.+?\\)\\]" . (1 'font-lock-builtin-face)) ;; duration + ("= *[[:digit:]/]+\\([ [:graph:]]+?\\)$" . (1 'font-lock-builtin-face)) ;; quantity measurements + ("^\\(.+?\\)=.+?$" . (1 'font-lock-variable-name-face)) ;; variable in assignment + ("\\${\\(.+?\\)}" . (1 'font-lock-variable-name-face)) ;; variable in ${} + ("\\$\\([^ {\n]+\\)" . (1 'font-lock-variable-name-face)) ;; single word variable + ("=>\\(.*\\)" . (1 'font-lock-variable-name-face)) ;; step result + ("^[ [:digit:]]*!" . 'font-lock-constant-face) ;; include + ("@\\|-\\|>\\|+\\|=>" . 'font-lock-constant-face) ;; symbols )) (define-derived-mode recipe-mode prog-mode "rcp" |