aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Pfeiffer2005-05-17 21:37:59 +0000
committerDaniel Pfeiffer2005-05-17 21:37:59 +0000
commit8ade3c25b7e1e6b742393a89c6d718d0790e2e1a (patch)
treed16b2f0b30b5661e57bd2db1fd4616e3f3dd23dd
parent0b11ce59ee4b7635e207466badfcbff97da80848 (diff)
downloademacs-8ade3c25b7e1e6b742393a89c6d718d0790e2e1a.tar.gz
emacs-8ade3c25b7e1e6b742393a89c6d718d0790e2e1a.zip
(makefile-macroassign-regex, makefile-make-font-lock-keywords): Also fontify plain strings assigned to variables, mostly so that a colon has a face and is thus not taken as a dependency separator.
(makefile-mode): Cancel `font-lock-support-mode', because blocks to be fontified in one piece can be too long for JIT. Makefiles are never *that* big.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/make-mode.el9
2 files changed, 12 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e9b5ddc832d..1ec0bb0a459 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,12 +1,18 @@
12005-05-17 Daniel Pfeiffer <occitan@esperanto.org> 12005-05-17 Daniel Pfeiffer <occitan@esperanto.org>
2 2
3 * progmodes/make-mode.el (makefile-dependency-skip): New variable. 3 * progmodes/make-mode.el (makefile-dependency-skip): New variable.
4 (makefile-macroassign-regex, makefile-make-font-lock-keywords):
5 Also fontify plain strings assigned to variables, mostly so that a
6 colon has a face and is thus not taken as a dependency separator.
4 (makefile-previous-dependency): Inline the new matcher, because it 7 (makefile-previous-dependency): Inline the new matcher, because it
5 is too complex to work in both directions. 8 is too complex to work in both directions.
6 (makefile-match-dependency): Eliminate `backward' arg (see above). 9 (makefile-match-dependency): Eliminate `backward' arg (see above).
7 Completely reimplemented so as to not sometimes go into an endless 10 Completely reimplemented so as to not sometimes go into an endless
8 loop. It should also be more efficient, because first it only 11 loop. It should also be more efficient, because first it only
9 searches for `:', instead of applying the very complex regexp. 12 searches for `:', instead of applying the very complex regexp.
13 (makefile-mode): Cancel `font-lock-support-mode', because blocks
14 to be fontified in one piece can be too long for JIT. Makefiles
15 are never *that* big.
10 16
112005-05-17 Reiner Steib <Reiner.Steib@gmx.de> 172005-05-17 Reiner Steib <Reiner.Steib@gmx.de>
12 18
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el
index 399f5376d58..fddb6a6cb20 100644
--- a/lisp/progmodes/make-mode.el
+++ b/lisp/progmodes/make-mode.el
@@ -273,7 +273,7 @@ not be enclosed in { } or ( )."
273;; that if you change this regexp you might have to fix the imenu index in 273;; that if you change this regexp you might have to fix the imenu index in
274;; makefile-imenu-generic-expression. 274;; makefile-imenu-generic-expression.
275(defconst makefile-macroassign-regex 275(defconst makefile-macroassign-regex
276 "^ *\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)\\|[*:+]?[:?]?=\\)" 276 "^ *\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)\\|[*:+]?[:?]?=[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)\\)"
277 "Regex used to find macro assignment lines in a makefile.") 277 "Regex used to find macro assignment lines in a makefile.")
278 278
279(defconst makefile-var-use-regex 279(defconst makefile-var-use-regex
@@ -331,7 +331,9 @@ not be enclosed in { } or ( )."
331 (,makefile-macroassign-regex 331 (,makefile-macroassign-regex
332 (1 font-lock-variable-name-face) 332 (1 font-lock-variable-name-face)
333 ;; This is for after != 333 ;; This is for after !=
334 (2 'makefile-shell-face prepend t)) 334 (2 'makefile-shell-face prepend t)
335 ;; This is for after normal assignment
336 (3 'font-lock-string-face prepend t))
335 337
336 ;; Rule actions. 338 ;; Rule actions.
337 (makefile-match-action 339 (makefile-match-action
@@ -787,7 +789,8 @@ Makefile mode can be configured by modifying the following variables:
787 nil nil 789 nil nil
788 ((?$ . ".")) 790 ((?$ . "."))
789 backward-paragraph 791 backward-paragraph
790 (font-lock-syntactic-keywords . makefile-font-lock-syntactic-keywords))) 792 (font-lock-syntactic-keywords . makefile-font-lock-syntactic-keywords)
793 (font-lock-support-mode))) ; JIT breaks on long series of continuation lines.
791 794
792 ;; Add-log. 795 ;; Add-log.
793 (make-local-variable 'add-log-current-defun-function) 796 (make-local-variable 'add-log-current-defun-function)