aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2010-03-24 11:57:16 -0400
committerStefan Monnier2010-03-24 11:57:16 -0400
commitefee6a6d9cec2af824b8355c93d8f47b72a685a8 (patch)
tree889b0993666766b1ade051b3ca06269ace082d6e
parent6d98672d243832fcfb090f54c86eaccb924a86d2 (diff)
downloademacs-efee6a6d9cec2af824b8355c93d8f47b72a685a8.tar.gz
emacs-efee6a6d9cec2af824b8355c93d8f47b72a685a8.zip
(makefile-rule-action-regex): Backtrack less.
(makefile-make-font-lock-keywords): Adjust rule since submatch 1 may not be present any more.
-rw-r--r--lisp/ChangeLog20
-rw-r--r--lisp/progmodes/make-mode.el5
2 files changed, 16 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8ec78196095..a83786a5927 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12010-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/make-mode.el (makefile-rule-action-regex): Backtrack less.
4 (makefile-make-font-lock-keywords): Adjust rule since submatch 1 may
5 not be present any more.
6
12010-03-24 Juanma Barranquero <lekktu@gmail.com> 72010-03-24 Juanma Barranquero <lekktu@gmail.com>
2 8
3 * faces.el (set-face-attribute): Fix typo in docstring. 9 * faces.el (set-face-attribute): Fix typo in docstring.
@@ -7,7 +13,7 @@
7 13
82010-03-23 Glenn Morris <rgm@gnu.org> 142010-03-23 Glenn Morris <rgm@gnu.org>
9 15
10 * textmodes/flyspell.el (sgml-lexical-context): Autoload it. (Bug#5752) 16 * textmodes/flyspell.el (sgml-lexical-context): Autoload it (Bug#5752).
11 17
122010-03-21 Chong Yidong <cyd@stupidchicken.com> 182010-03-21 Chong Yidong <cyd@stupidchicken.com>
13 19
@@ -15,16 +21,16 @@
15 21
162010-03-22 Alan Mackenzie <acm@muc.de> 222010-03-22 Alan Mackenzie <acm@muc.de>
17 23
18 * progmodes/cc-engine.el (c-remove-stale-state-cache): Fix 24 * progmodes/cc-engine.el (c-remove-stale-state-cache):
19 off-by-one error. Fixes bug #5747. 25 Fix off-by-one error. Fixes bug #5747.
20 26
212010-03-22 Juanma Barranquero <lekktu@gmail.com> 272010-03-22 Juanma Barranquero <lekktu@gmail.com>
22 28
23 * image-dired.el (image-dired-display-thumbs): Fix typo in docstring. 29 * image-dired.el (image-dired-display-thumbs): Fix typo in docstring.
24 (image-dired-read-comment): Doc fix. 30 (image-dired-read-comment): Doc fix.
25 31
26 * json.el (json-object-type, json-array-type, json-key-type, json-false) 32 * json.el (json-object-type, json-array-type, json-key-type)
27 (json-null, json-read-number): 33 (json-false, json-null, json-read-number):
28 * minibuffer.el (completion-in-region-functions): 34 * minibuffer.el (completion-in-region-functions):
29 * calendar/cal-tex.el (cal-tex-daily-end, cal-tex-number-weeks) 35 * calendar/cal-tex.el (cal-tex-daily-end, cal-tex-number-weeks)
30 (cal-tex-cursor-week): 36 (cal-tex-cursor-week):
@@ -70,8 +76,8 @@
70 76
712010-03-13 Michael Albinus <michael.albinus@gmx.de> 772010-03-13 Michael Albinus <michael.albinus@gmx.de>
72 78
73 * net/tramp.el (tramp-find-executable): Use 79 * net/tramp.el (tramp-find-executable):
74 `tramp-get-connection-buffer'. Make the regexp for checking 80 Use `tramp-get-connection-buffer'. Make the regexp for checking
75 output of "wc -l" more robust. 81 output of "wc -l" more robust.
76 (tramp-find-shell): Use another shell but /bin/sh on OpenSolaris. 82 (tramp-find-shell): Use another shell but /bin/sh on OpenSolaris.
77 (tramp-open-connection-setup-interactive-shell): Remove workaround 83 (tramp-open-connection-setup-interactive-shell): Remove workaround
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el
index c94d750823d..594462d5125 100644
--- a/lisp/progmodes/make-mode.el
+++ b/lisp/progmodes/make-mode.el
@@ -272,7 +272,7 @@ not be enclosed in { } or ( )."
272 "Characters to skip to find a line that might be a dependency.") 272 "Characters to skip to find a line that might be a dependency.")
273 273
274(defvar makefile-rule-action-regex 274(defvar makefile-rule-action-regex
275 "^\t[ \t]*\\([-@]*\\)[ \t]*\\(\\(?:.*\\\\\n\\)*.*\\)" 275 "^\t[ \t]*\\(?:\\([-@]+\\)[ \t]*\\)\\(.*\\(?:\\\\\n.*\\)*\\)"
276 "Regex used to highlight rule action lines in font lock mode.") 276 "Regex used to highlight rule action lines in font lock mode.")
277 277
278(defconst makefile-makepp-rule-action-regex 278(defconst makefile-makepp-rule-action-regex
@@ -355,8 +355,9 @@ not be enclosed in { } or ( )."
355 (3 'font-lock-string-face prepend t)) 355 (3 'font-lock-string-face prepend t))
356 356
357 ;; Rule actions. 357 ;; Rule actions.
358 ;; FIXME: When this spans multiple lines we need font-lock-multiline.
358 (makefile-match-action 359 (makefile-match-action
359 (1 font-lock-type-face) 360 (1 font-lock-type-face nil t)
360 (2 'makefile-shell prepend) 361 (2 'makefile-shell prepend)
361 ;; Only makepp has builtin commands. 362 ;; Only makepp has builtin commands.
362 (3 font-lock-builtin-face prepend t)) 363 (3 font-lock-builtin-face prepend t))