comparison lisp/modes/make-mode.el @ 126:1370575f1259 xemacs-20-1p1

Import from CVS: tag xemacs-20-1p1
author cvs
date Mon, 13 Aug 2007 09:27:39 +0200
parents 9b50b4588a93
children 28f395d8dc7a
comparison
equal deleted inserted replaced
125:8b0638b347ec 126:1370575f1259
295 ;; Do dependencies. These get the function name face. 295 ;; Do dependencies. These get the function name face.
296 (list makefile-dependency-regex 1 'font-lock-function-name-face 'prepend) 296 (list makefile-dependency-regex 1 'font-lock-function-name-face 'prepend)
297 297
298 ;; Highlight lines that contain just whitespace. 298 ;; Highlight lines that contain just whitespace.
299 ;; They can cause trouble, especially if they start with a tab. 299 ;; They can cause trouble, especially if they start with a tab.
300 '("^[ \t]+$" . 'makefile-space-face) 300 '("^[ \t]+$" . makefile-space-face)
301 301
302 ;; Highlight shell comments that Make treats as commands, 302 ;; Highlight shell comments that Make treats as commands,
303 ;; since these can fool people. 303 ;; since these can fool people.
304 '("^\t+#" 0 'makefile-space-face t) 304 '("^\t+#" 0 makefile-space-face t)
305 305
306 ;; Highlight spaces that precede tabs. 306 ;; Highlight spaces that precede tabs.
307 ;; They can make a tab fail to be effective. 307 ;; They can make a tab fail to be effective.
308 '("^\\( +\\)\t" 1 'makefile-space-face))) 308 '("^\\( +\\)\t" 1 makefile-space-face)))
309 "Additional expressions to highlight in makefiles") 309 "Additional expressions to highlight in makefiles")
310 310
311 (put 'makefile-mode 'font-lock-defaults '(makefile-font-lock-keywords)) 311 (put 'makefile-mode 'font-lock-defaults '(makefile-font-lock-keywords))
312 312
313 ;;; ------------------------------------------------------------ 313 ;;; ------------------------------------------------------------