# HG changeset patch # User Juanma Barranquero # Date 1048112600 0 # Node ID 63bfe38255104e4c12fbe962fd2107b7c0ce1ed5 # Parent 4718d0de22faf5ce5577f811561bcc5bfac78bad (makefile-font-lock-syntactic-keywords): New variable. (makefile-mode): Use it for value of font-lock-syntactic-keywords. diff -r 4718d0de22fa -r 63bfe3825510 lisp/progmodes/make-mode.el --- 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)