diff options
| author | Dave Love | 1998-09-08 12:55:10 +0000 |
|---|---|---|
| committer | Dave Love | 1998-09-08 12:55:10 +0000 |
| commit | 97a3278b57a1f461b4e98f8aed6bb11dee96ddcb (patch) | |
| tree | 45ceaef5f1a1c6e03eaa59f79f6b219c909fdb0b | |
| parent | 0d5dc4a5fafd5509fb6bca04a2fbe39fe45bd97e (diff) | |
| download | emacs-97a3278b57a1f461b4e98f8aed6bb11dee96ddcb.tar.gz emacs-97a3278b57a1f461b4e98f8aed6bb11dee96ddcb.zip | |
(change-log-font-lock-keywords): Do parenthesized
stuff only after file names or at start of line. Allow parens
around e-mail, as well as angles.
| -rw-r--r-- | lisp/add-log.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el index 287ff094ae8..63a758dd2ce 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -116,17 +116,22 @@ this variable." | |||
| 116 | ;; Date lines, new and old styles. | 116 | ;; Date lines, new and old styles. |
| 117 | ("^\\sw.........[0-9:+ ]*" | 117 | ("^\\sw.........[0-9:+ ]*" |
| 118 | (0 font-lock-string-face) | 118 | (0 font-lock-string-face) |
| 119 | ("\\([^<]+\\)<\\([A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+\\)>" nil nil | 119 | ;; Name and e-mail; some people put e-mail in parens, not angles. |
| 120 | ("\\([^<(]+\\)[(<]\\([A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+\\)[>)]" nil nil | ||
| 120 | (1 font-lock-constant-face) | 121 | (1 font-lock-constant-face) |
| 121 | (2 font-lock-variable-name-face))) | 122 | (2 font-lock-variable-name-face))) |
| 122 | ;; | 123 | ;; |
| 123 | ;; File names. | 124 | ;; File names. |
| 124 | ("^\t\\* \\([^ ,:([\n]+\\)" | 125 | ("^\t\\* \\([^ ,:([\n]+\\)" |
| 125 | (1 font-lock-function-name-face) | 126 | (1 font-lock-function-name-face) |
| 126 | ("\\=, \\([^ ,:([\n]+\\)" nil nil (1 font-lock-function-name-face))) | 127 | ;; Possibly further names in a list: |
| 128 | ("\\=, \\([^ ,:([\n]+\\)" nil nil (1 font-lock-function-name-face)) | ||
| 129 | ;; Possibly a parenthesized list of names: | ||
| 130 | ("\\= (\\([^) ,:\n]+\\)" nil nil (1 font-lock-keyword-face)) | ||
| 131 | ("\\=, *\\([^) ,:\n]+\\)" nil nil (1 font-lock-keyword-face))) | ||
| 127 | ;; | 132 | ;; |
| 128 | ;; Function or variable names. | 133 | ;; Function or variable names. |
| 129 | ("(\\([^) ,:\n]+\\)" | 134 | ("^\t(\\([^) ,:\n]+\\)" |
| 130 | (1 font-lock-keyword-face) | 135 | (1 font-lock-keyword-face) |
| 131 | ("\\=, *\\([^) ,:\n]+\\)" nil nil (1 font-lock-keyword-face))) | 136 | ("\\=, *\\([^) ,:\n]+\\)" nil nil (1 font-lock-keyword-face))) |
| 132 | ;; | 137 | ;; |