]> git.eshelyaron.com Git - emacs.git/commitdiff
(makefile-rule-action-regex, makefile-macroassign-regex): Continuation lines may...
authorDaniel Pfeiffer <occitan@esperanto.org>
Sun, 29 May 2005 07:54:07 +0000 (07:54 +0000)
committerDaniel Pfeiffer <occitan@esperanto.org>
Sun, 29 May 2005 07:54:07 +0000 (07:54 +0000)
(makefile-makepp-font-lock-keywords): Add $(stem).

lisp/ChangeLog
lisp/progmodes/make-mode.el

index 839f7783404d50b1c3925f0157926159124c971a..8d688e59af9345cdbbddf25f15901c7c8c8c2ab5 100644 (file)
@@ -1,3 +1,10 @@
+2005-05-29  Daniel Pfeiffer  <occitan@esperanto.org>
+
+       * progmodes/make-mode.el (makefile-rule-action-regex)
+       (makefile-macroassign-regex): Continuation lines may be empty.
+       Reported by Joshua Varner.
+       (makefile-makepp-font-lock-keywords): Add $(stem).
+
 2005-05-28  Karl Berry  <karl@gnu.org>
 
        * textmodes/tex-mode.el: now that tex-send-command calls
index 05c3ac50787a9ebdd5de4b683bcc3044e9855c87..a8090657b2a84afc39343eb0ad34cae8d223ee4e 100644 (file)
@@ -266,14 +266,14 @@ not be enclosed in { } or ( )."
   "Characters to skip to find a line that might be a dependency.")
 
 (defvar makefile-rule-action-regex
-  "^\t[ \t]*\\([-@]*\\)[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)"
+  "^\t[ \t]*\\([-@]*\\)[ \t]*\\(\\(?:.*\\\\\n\\)*.*\\)"
   "Regex used to highlight rule action lines in font lock mode.")
 
 ;; Note that the first and second subexpression is used by font lock.  Note
 ;; that if you change this regexp you might have to fix the imenu index in
 ;; makefile-imenu-generic-expression.
 (defconst makefile-macroassign-regex
-  "^ *\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)\\|[*:+]?[:?]?=[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)\\)"
+  "^ *\\([^ \n\t][^:#= \t\n]*\\)[ \t]*\\(?:!=[ \t]*\\(\\(?:.+\\\\\n\\)*.+\\)\\|[*:+]?[:?]?=[ \t]*\\(\\(?:.*\\\\\n\\)*.*\\)\\)"
   "Regex used to find macro assignment lines in a makefile.")
 
 (defconst makefile-var-use-regex
@@ -420,7 +420,7 @@ not be enclosed in { } or ( )."
    nil
    "^\\(?: [ \t]*\\)?\\(?:and[ \t]+\\|else[ \t]+\\|or[ \t]+\\)?if\\(n\\)\\(?:def\\|eq\\|sys\\)\\>"
 
-   '("[^$]\\(\\$[({]\\(?:target\\|output\\)s?\\_>.*?[})]\\)"
+   '("[^$]\\(\\$[({]\\(?:output\\|stem\\|target\\)s?\\_>.*?[})]\\)"
      1 'makefile-targets-face prepend)
 
    ;; Colon modifier keywords.