diff options
| author | Simon Marshall | 1996-10-23 09:16:54 +0000 |
|---|---|---|
| committer | Simon Marshall | 1996-10-23 09:16:54 +0000 |
| commit | 5572c1d1e97467801fe4f3435a20f3b6ba93f344 (patch) | |
| tree | 42242218458311690feaadfa6f6145eff87eb137 | |
| parent | 3bd8b59d605e4c8da144ad0f7d26e45aa34aae38 (diff) | |
| download | emacs-5572c1d1e97467801fe4f3435a20f3b6ba93f344.tar.gz emacs-5572c1d1e97467801fe4f3435a20f3b6ba93f344.zip | |
Tweak change-log-font-lock-keywords
| -rw-r--r-- | lisp/add-log.el | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el index f4427182e61..45d1893e0c0 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -47,9 +47,28 @@ This defaults to the value returned by the `user-full-name' function.") | |||
| 47 | This defaults to the value of `user-mail-address'.") | 47 | This defaults to the value of `user-mail-address'.") |
| 48 | 48 | ||
| 49 | (defvar change-log-font-lock-keywords | 49 | (defvar change-log-font-lock-keywords |
| 50 | '(("^[12].+" . font-lock-function-name-face) ; Date line. | 50 | '(;; |
| 51 | ("^\t\\* \\([^ :\n]+\\)" 1 font-lock-comment-face) ; File name. | 51 | ;; Date lines, new and old styles. |
| 52 | ("(\\([^)\n]+\\)):" 1 font-lock-keyword-face)) ; Function name. | 52 | ("^\\sw........." |
| 53 | (0 font-lock-string-face) | ||
| 54 | ("[A-Z][^\n<]+" nil nil (0 font-lock-reference-face))) | ||
| 55 | ;; | ||
| 56 | ;; File names. | ||
| 57 | ("^\t\\* \\([^ ,:([\n]+\\)" | ||
| 58 | (1 font-lock-function-name-face) | ||
| 59 | ("\\=, \\([^ ,:([\n]+\\)" nil nil (1 font-lock-function-name-face))) | ||
| 60 | ;; | ||
| 61 | ;; Function or variable names. | ||
| 62 | ("(\\([^ ,:\n]+\\)" | ||
| 63 | (1 font-lock-keyword-face) | ||
| 64 | ("\\=, \\([^ ,:\n]+\\)" nil nil (1 font-lock-keyword-face))) | ||
| 65 | ;; | ||
| 66 | ;; Conditionals. | ||
| 67 | ("\\[!?\\([^]\n]+\\)\\]\\(:\\| (\\)" (1 font-lock-variable-name-face)) | ||
| 68 | ;; | ||
| 69 | ;; Acknowledgments. | ||
| 70 | ("^\t\\(From\\|Reported by\\)" 1 font-lock-comment-face) | ||
| 71 | ) | ||
| 53 | "Additional expressions to highlight in Change Log mode.") | 72 | "Additional expressions to highlight in Change Log mode.") |
| 54 | 73 | ||
| 55 | (defvar change-log-mode-map nil | 74 | (defvar change-log-mode-map nil |