# HG changeset patch # User Richard M. Stallman # Date 760144241 0 # Node ID 781af712e68c7c762288b19682c38972e15a0527 # Parent 45d91f2b381095b0fff8035616cb124d037bb76e (font-lock-set-defaults): Handle shell mode. (shell-font-lock-keywords): New variable. diff -r 45d91f2b3810 -r 781af712e68c lisp/font-lock.el --- a/lisp/font-lock.el Tue Feb 01 18:24:12 1994 +0000 +++ b/lisp/font-lock.el Tue Feb 01 23:10:41 1994 +0000 @@ -437,6 +437,7 @@ ((eq major-mode 'perl-mode) perl-font-lock-keywords) ((eq major-mode 'tex-mode) tex-font-lock-keywords) ((eq major-mode 'texinfo-mode) texi-font-lock-keywords) + ((eq major-mode 'shell-mode) shell-font-lock-keywords) (t nil))))) (defconst lisp-font-lock-keywords-1 @@ -635,6 +636,15 @@ ) "Additional expressions to highlight in TeXinfo mode.") +(defvar shell-font-lock-keywords + (list (cons shell-prompt-pattern 'font-lock-keyword-face) + (list (concat shell-prompt-pattern "\\([^ \t]+\\)") + 1 'font-lock-function-name-face) + '("[ \t]\\([+-][^ \t\n]+\\)" 1 font-lock-comment-face) + '("^[^ \t]+:.*$" . font-lock-string-face) + '("^\\[[1-9][0-9]*\\]" . font-lock-string-face)) + "Additional expressions to highlight in TeXinfo mode.") + (provide 'font-lock) ;;; font-lock.el ends here