comparison 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
comparison
equal deleted inserted replaced
12960:6db607a7b62d 12961:e8028ecec7ea
218 218
219 ;; Highlight lines that contain just whitespace. 219 ;; Highlight lines that contain just whitespace.
220 ;; They can cause trouble, especially if they start with a tab. 220 ;; They can cause trouble, especially if they start with a tab.
221 '("^[ \t]+$" . makefile-space-face) 221 '("^[ \t]+$" . makefile-space-face)
222 222
223 ;; Highlight leading spaces, since they are hard to see before a tab 223 ;; Highlight shell comments that Make treats as commands,
224 ;; and can make a makefile fail to function. 224 ;; since these can fool people.
225 ;; Don't highlight leading tabs, because they are normal 225 '("^\t+#" makefile-space-face t)
226 ;; and people assume that 8 cols of whitespace means a tab. 226
227 '("^ " . makefile-space-face))) 227 ;; Highlight spaces that precede tabs.
228 ;; They can make a tab fail to be effective.
229 '("^\\( +\\)\t" 1 makefile-space-face)))
228 230
229 ;;; ------------------------------------------------------------ 231 ;;; ------------------------------------------------------------
230 ;;; The following configurable variables are used in the 232 ;;; The following configurable variables are used in the
231 ;;; up-to-date overview . 233 ;;; up-to-date overview .
232 ;;; The standard configuration assumes that your `make' program 234 ;;; The standard configuration assumes that your `make' program