Mercurial > emacs
changeset 23215:c06f07cf6bba
(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.
author | Dave Love <fx@gnu.org> |
---|---|
date | Tue, 08 Sep 1998 12:55:10 +0000 |
parents | f075bf0ae873 |
children | cd79894839e7 |
files | lisp/add-log.el |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/add-log.el Tue Sep 08 12:47:39 1998 +0000 +++ b/lisp/add-log.el Tue Sep 08 12:55:10 1998 +0000 @@ -116,17 +116,22 @@ ;; 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))) ;;