aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/make-mode.el
diff options
context:
space:
mode:
authorJuanma Barranquero <[email protected]>2003-03-19 22:25:11 +0000
committerJuanma Barranquero <[email protected]>2003-03-19 22:25:11 +0000
commit0b51ba8a5a0a2b46a433bfd06161af5cf2e31145 (patch)
treec8da2ed98caf4205924cbe3b47f2b596c0424b27 /lisp/progmodes/make-mode.el
parent87e391a9863dc11585b13f34b9b6fd342e2b66bb (diff)
(makefile-font-lock-syntactic-keywords): New variable.
(makefile-mode): Use it for value of font-lock-syntactic-keywords.
Diffstat (limited to 'lisp/progmodes/make-mode.el')
-rw-r--r--lisp/progmodes/make-mode.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el
index 4ffdfdef01..f44bca814c 100644
--- a/lisp/progmodes/make-mode.el
+++ b/lisp/progmodes/make-mode.el
@@ -300,6 +300,11 @@ not be enclosed in { } or ( )."
;; 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 @@ Makefile mode can be configured by modifying the following variables:
;; 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)