summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-08-28 15:09:57 +0000
committerRichard M. Stallman <rms@gnu.org>1995-08-28 15:09:57 +0000
commitf067044f476426b64f1444b82acc8d7911133550 (patch)
treea344939e968deb5478c109808aadb7e73a0d821a /lisp
parente6a5c7de38e289a49edac7e062c0512c8a7fb6b0 (diff)
downloademacs-f067044f476426b64f1444b82acc8d7911133550.tar.gz
(makefile-font-lock-keywords): Highlight lines with
tab followed by #, and initial spaces preceding tabs--not all initial spaces.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/make-mode.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el
index 02693bb1607..a30f03a60e9 100644
--- a/lisp/progmodes/make-mode.el
+++ b/lisp/progmodes/make-mode.el
@@ -220,11 +220,13 @@ not be enclosed in { } or ( ).")
;; 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