diff lisp/font-lock.el @ 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 cd5849662239
children 8d1a39cde5e3
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)