comparison lisp/progmodes/make-mode.el @ 48618:8e21762fb622

(makefile-font-lock-keywords): Highlight more make keywords: defined, endef, override, export, unexport and vpath.
author Richard M. Stallman <rms@gnu.org>
date Mon, 02 Dec 2002 16:16:52 +0000
parents 7f3cb336821a
children 1735ba4bf05b
comparison
equal deleted inserted replaced
48617:802b2a15e451 48618:8e21762fb622
277 ;; Fontify conditionals and includes. 277 ;; Fontify conditionals and includes.
278 ;; Note that plain `if' is an automake conditional, and not a bug. 278 ;; Note that plain `if' is an automake conditional, and not a bug.
279 (list 279 (list
280 (concat "^\\(?: [ \t]*\\)?" 280 (concat "^\\(?: [ \t]*\\)?"
281 (regexp-opt '("-include" "-sinclude" "include" "sinclude" "ifeq" 281 (regexp-opt '("-include" "-sinclude" "include" "sinclude" "ifeq"
282 "if" "ifneq" "ifdef" "ifndef" "endif" "else") t) 282 "if" "ifneq" "ifdef" "ifndef" "endif" "else"
283 "define" "endef" "override"
284 "export" "unexport" "vpath") t)
283 "\\>[ \t]*\\([^: \t\n#]*\\)") 285 "\\>[ \t]*\\([^: \t\n#]*\\)")
284 '(1 font-lock-keyword-face) '(2 font-lock-variable-name-face)) 286 '(1 font-lock-keyword-face) '(2 font-lock-variable-name-face))
285 287
286 ;; Highlight lines that contain just whitespace. 288 ;; Highlight lines that contain just whitespace.
287 ;; They can cause trouble, especially if they start with a tab. 289 ;; They can cause trouble, especially if they start with a tab.