diff options
| author | Juanma Barranquero | 2003-03-19 22:25:11 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2003-03-19 22:25:11 +0000 |
| commit | 0b51ba8a5a0a2b46a433bfd06161af5cf2e31145 (patch) | |
| tree | c8da2ed98caf4205924cbe3b47f2b596c0424b27 /lisp/progmodes | |
| parent | 87e391a9863dc11585b13f34b9b6fd342e2b66bb (diff) | |
| download | emacs-0b51ba8a5a0a2b46a433bfd06161af5cf2e31145.tar.gz emacs-0b51ba8a5a0a2b46a433bfd06161af5cf2e31145.zip | |
(makefile-font-lock-syntactic-keywords): New variable.
(makefile-mode): Use it for value of font-lock-syntactic-keywords.
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/make-mode.el | 11 |
1 files changed, 10 insertions, 1 deletions
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 ( )." | |||
| 300 | ;; They can make a tab fail to be effective. | 300 | ;; They can make a tab fail to be effective. |
| 301 | '("^\\( +\\)\t" 1 makefile-space-face))) | 301 | '("^\\( +\\)\t" 1 makefile-space-face))) |
| 302 | 302 | ||
| 303 | (defconst makefile-font-lock-syntactic-keywords | ||
| 304 | (list | ||
| 305 | ;; Change the syntax of a quoted newline so that it does not end a comment. | ||
| 306 | '("\\\\\n" 0 " "))) | ||
| 307 | |||
| 303 | (defvar makefile-imenu-generic-expression | 308 | (defvar makefile-imenu-generic-expression |
| 304 | (list | 309 | (list |
| 305 | (list "Dependencies" makefile-dependency-regex 1) | 310 | (list "Dependencies" makefile-dependency-regex 1) |
| @@ -588,7 +593,11 @@ Makefile mode can be configured by modifying the following variables: | |||
| 588 | ;; SYNTAX-BEGIN set to backward-paragraph to avoid slow-down | 593 | ;; SYNTAX-BEGIN set to backward-paragraph to avoid slow-down |
| 589 | ;; near the end of a large buffer, due to parse-partial-sexp's | 594 | ;; near the end of a large buffer, due to parse-partial-sexp's |
| 590 | ;; trying to parse all the way till the beginning of buffer. | 595 | ;; trying to parse all the way till the beginning of buffer. |
| 591 | '(makefile-font-lock-keywords nil nil ((?$ . ".")) backward-paragraph)) | 596 | '(makefile-font-lock-keywords |
| 597 | nil nil | ||
| 598 | ((?$ . ".")) | ||
| 599 | backward-paragraph | ||
| 600 | (font-lock-syntactic-keywords . makefile-font-lock-syntactic-keywords))) | ||
| 592 | 601 | ||
| 593 | ;; Add-log. | 602 | ;; Add-log. |
| 594 | (make-local-variable 'add-log-current-defun-function) | 603 | (make-local-variable 'add-log-current-defun-function) |