changeset 50205:63bfe3825510

(makefile-font-lock-syntactic-keywords): New variable. (makefile-mode): Use it for value of font-lock-syntactic-keywords.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 19 Mar 2003 22:23:20 +0000
parents 4718d0de22fa
children b453fa770ef2
files lisp/progmodes/make-mode.el
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/make-mode.el	Wed Mar 19 17:17:58 2003 +0000
+++ b/lisp/progmodes/make-mode.el	Wed Mar 19 22:23:20 2003 +0000
@@ -300,6 +300,11 @@
    ;; They can make a tab fail to be effective.
    '("^\\( +\\)\t" 1 makefile-space-face)))
 
+(defconst makefile-font-lock-syntactic-keywords
+  (list
+   ;; Change the syntax of a quoted newline so that it does not end a comment.
+   '("\\\\\n" 0 " ")))
+
 (defvar makefile-imenu-generic-expression
   (list
    (list "Dependencies" makefile-dependency-regex  1)
@@ -588,7 +593,11 @@
 	;; SYNTAX-BEGIN set to backward-paragraph to avoid slow-down
 	;; near the end of a large buffer, due to parse-partial-sexp's
 	;; trying to parse all the way till the beginning of buffer.
-        '(makefile-font-lock-keywords nil nil ((?$ . ".")) backward-paragraph))
+ 	'(makefile-font-lock-keywords
+ 	  nil nil
+ 	  ((?$ . "."))
+ 	  backward-paragraph
+	  (font-lock-syntactic-keywords . makefile-font-lock-syntactic-keywords)))
 
   ;; Add-log.
   (make-local-variable 'add-log-current-defun-function)