diff options
| author | Richard M. Stallman | 1994-02-01 23:10:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-01 23:10:41 +0000 |
| commit | 03244f89b5515e8794a732fcd37131db19da2caf (patch) | |
| tree | 5fc5ae4542faeccf574c662b36ebb0965dac9202 | |
| parent | 4feadcc08edcd2819829b005a6e61fec2113fc4c (diff) | |
| download | emacs-03244f89b5515e8794a732fcd37131db19da2caf.tar.gz emacs-03244f89b5515e8794a732fcd37131db19da2caf.zip | |
(font-lock-set-defaults): Handle shell mode.
(shell-font-lock-keywords): New variable.
| -rw-r--r-- | lisp/font-lock.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index d0c042d39d3..27538a8f532 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -437,6 +437,7 @@ This can take a while for large buffers." | |||
| 437 | ((eq major-mode 'perl-mode) perl-font-lock-keywords) | 437 | ((eq major-mode 'perl-mode) perl-font-lock-keywords) |
| 438 | ((eq major-mode 'tex-mode) tex-font-lock-keywords) | 438 | ((eq major-mode 'tex-mode) tex-font-lock-keywords) |
| 439 | ((eq major-mode 'texinfo-mode) texi-font-lock-keywords) | 439 | ((eq major-mode 'texinfo-mode) texi-font-lock-keywords) |
| 440 | ((eq major-mode 'shell-mode) shell-font-lock-keywords) | ||
| 440 | (t nil))))) | 441 | (t nil))))) |
| 441 | 442 | ||
| 442 | (defconst lisp-font-lock-keywords-1 | 443 | (defconst lisp-font-lock-keywords-1 |
| @@ -635,6 +636,15 @@ This does a lot more highlighting.") | |||
| 635 | ) | 636 | ) |
| 636 | "Additional expressions to highlight in TeXinfo mode.") | 637 | "Additional expressions to highlight in TeXinfo mode.") |
| 637 | 638 | ||
| 639 | (defvar shell-font-lock-keywords | ||
| 640 | (list (cons shell-prompt-pattern 'font-lock-keyword-face) | ||
| 641 | (list (concat shell-prompt-pattern "\\([^ \t]+\\)") | ||
| 642 | 1 'font-lock-function-name-face) | ||
| 643 | '("[ \t]\\([+-][^ \t\n]+\\)" 1 font-lock-comment-face) | ||
| 644 | '("^[^ \t]+:.*$" . font-lock-string-face) | ||
| 645 | '("^\\[[1-9][0-9]*\\]" . font-lock-string-face)) | ||
| 646 | "Additional expressions to highlight in TeXinfo mode.") | ||
| 647 | |||
| 638 | (provide 'font-lock) | 648 | (provide 'font-lock) |
| 639 | 649 | ||
| 640 | ;;; font-lock.el ends here | 650 | ;;; font-lock.el ends here |