Mercurial > emacs
changeset 58564:eea39a81fd89
(font-lock-compile-keywords): Don't complain if the end
of defun-prompt-regexp matches inside a comment/string but the
beginning is correctly outside everything.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sat, 27 Nov 2004 00:17:22 +0000 |
parents | 72c3587cd01b |
children | 24b04ef917a7 |
files | lisp/font-lock.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/font-lock.el Sat Nov 27 00:07:14 2004 +0000 +++ b/lisp/font-lock.el Sat Nov 27 00:17:22 2004 +0000 @@ -1456,7 +1456,7 @@ (concat "^\\(?:" defun-prompt-regexp "\\)?\\s(") "^\\s(") (0 - (if (memq (get-text-property (1- (point)) 'face) + (if (memq (get-text-property (match-beginning 0) 'face) '(font-lock-string-face font-lock-doc-face font-lock-comment-face)) font-lock-warning-face)