]> git.eshelyaron.com Git - emacs.git/commitdiff
(makefile-font-lock-syntactic-keywords): New variable.
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 19 Mar 2003 22:25:11 +0000 (22:25 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 19 Mar 2003 22:25:11 +0000 (22:25 +0000)
(makefile-mode): Use it for value of font-lock-syntactic-keywords.

lisp/ChangeLog
lisp/progmodes/make-mode.el

index c3c0db08048a8390b9cced083f2d62b402834f78..47fbc67b565820fb037b280c4cbca77eca665863 100644 (file)
@@ -1,8 +1,14 @@
+2003-03-19  Simon Marshall  <simon@gnu.org>
+
+       * 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  <jpw@gnu.org>
 
        * cus-theme.el (custom-theme-create): Add autoload cookie.
 
-2003-03-19  Kenichi Handa  <handa@etlken2>
+2003-03-19  Kenichi Handa  <handa@m17n.org>
 
        * dired.el (dired-get-filename): Pay attention to the case that
        `read' returns a unibyte string.  Don't encode the file name by
index 4ffdfdef011e116e27863dcedc411ff9faa4ba5a..f44bca814ccc8295ea33aef5debbe8ac6e6d31f6 100644 (file)
@@ -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)