From 0b51ba8a5a0a2b46a433bfd06161af5cf2e31145 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Wed, 19 Mar 2003 22:25:11 +0000 Subject: [PATCH] (makefile-font-lock-syntactic-keywords): New variable. (makefile-mode): Use it for value of font-lock-syntactic-keywords. --- lisp/ChangeLog | 8 +++++++- lisp/progmodes/make-mode.el | 11 ++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c3c0db08048..47fbc67b565 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,8 +1,14 @@ +2003-03-19 Simon Marshall + + * progmodes/make-mode.el (makefile-font-lock-syntactic-keywords): + New variable. + (makefile-mode): Use it for value of font-lock-syntactic-keywords. + 2003-03-19 John Paul Wallington * cus-theme.el (custom-theme-create): Add autoload cookie. -2003-03-19 Kenichi Handa +2003-03-19 Kenichi Handa * dired.el (dired-get-filename): Pay attention to the case that `read' returns a unibyte string. Don't encode the file name by diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 4ffdfdef011..f44bca814cc 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) -- 2.39.2