diff lisp/progmodes/make-mode.el @ 12961:e8028ecec7ea

(makefile-font-lock-keywords): Highlight lines with tab followed by #, and initial spaces preceding tabs--not all initial spaces.
author Richard M. Stallman <rms@gnu.org>
date Mon, 28 Aug 1995 15:09:57 +0000
parents 123200a483ae
children 87b725d9d2ae
line wrap: on
line diff
--- a/lisp/progmodes/make-mode.el	Mon Aug 28 00:15:59 1995 +0000
+++ b/lisp/progmodes/make-mode.el	Mon Aug 28 15:09:57 1995 +0000
@@ -220,11 +220,13 @@
    ;; They can cause trouble, especially if they start with a tab.
    '("^[ \t]+$" . makefile-space-face)
 
-   ;; Highlight leading spaces, since they are hard to see before a tab
-   ;; and can make a makefile fail to function.
-   ;; Don't highlight leading tabs, because they are normal
-   ;; and people assume that 8 cols of whitespace means a tab.
-   '("^ " . makefile-space-face)))
+   ;; Highlight shell comments that Make treats as commands,
+   ;; since these can fool people.
+   '("^\t+#" makefile-space-face t)
+
+   ;; Highlight spaces that precede tabs.
+   ;; They can make a tab fail to be effective.
+   '("^\\( +\\)\t" 1 makefile-space-face)))
 
 ;;; ------------------------------------------------------------
 ;;; The following configurable variables are used in the