summaryrefslogtreecommitdiff
path: root/lisp/add-log.el
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>1998-09-08 12:55:10 +0000
committerDave Love <fx@gnu.org>1998-09-08 12:55:10 +0000
commit97a3278b57a1f461b4e98f8aed6bb11dee96ddcb (patch)
tree45ceaef5f1a1c6e03eaa59f79f6b219c909fdb0b /lisp/add-log.el
parent0d5dc4a5fafd5509fb6bca04a2fbe39fe45bd97e (diff)
downloademacs-97a3278b57a1f461b4e98f8aed6bb11dee96ddcb.tar.gz
(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.
Diffstat (limited to 'lisp/add-log.el')
-rw-r--r--lisp/add-log.el11
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."
;; Date lines, new and old styles.
("^\\sw.........[0-9:+ ]*"
(0 font-lock-string-face)
- ("\\([^<]+\\)<\\([A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+\\)>" nil nil
+ ;; Name and e-mail; some people put e-mail in parens, not angles.
+ ("\\([^<(]+\\)[(<]\\([A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+\\)[>)]" nil nil
(1 font-lock-constant-face)
(2 font-lock-variable-name-face)))
;;
;; File names.
("^\t\\* \\([^ ,:([\n]+\\)"
(1 font-lock-function-name-face)
- ("\\=, \\([^ ,:([\n]+\\)" nil nil (1 font-lock-function-name-face)))
+ ;; Possibly further names in a list:
+ ("\\=, \\([^ ,:([\n]+\\)" nil nil (1 font-lock-function-name-face))
+ ;; Possibly a parenthesized list of names:
+ ("\\= (\\([^) ,:\n]+\\)" nil nil (1 font-lock-keyword-face))
+ ("\\=, *\\([^) ,:\n]+\\)" nil nil (1 font-lock-keyword-face)))
;;
;; Function or variable names.
- ("(\\([^) ,:\n]+\\)"
+ ("^\t(\\([^) ,:\n]+\\)"
(1 font-lock-keyword-face)
("\\=, *\\([^) ,:\n]+\\)" nil nil (1 font-lock-keyword-face)))
;;