changeset 91821:4ab3a4d4cc4e

add php error regex for compile mode
author Mark A. Hershberger <mah@everybody.org>
date Wed, 13 Feb 2008 22:26:33 +0000
parents f084b6fae1f0
children 311ffbbfa909
files lisp/ChangeLog lisp/progmodes/compile.el
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Feb 13 21:52:41 2008 +0000
+++ b/lisp/ChangeLog	Wed Feb 13 22:26:33 2008 +0000
@@ -16,6 +16,10 @@
 	(flymake-err-line-patterns): Add pattern for PHP errors.
 	(flymake-php-init): New function.  PHP support for flymake.
 
+	* progmodes/compile.el (compilation-error-regexp-alist-alist): Add
+	regular expression for PHP errors.
+
+
 2008-02-13  Michael Albinus  <michael.albinus@gmx.de>
 
 	* net/ange-ftp.el (ange-ftp-quote-string): Use
--- a/lisp/progmodes/compile.el	Wed Feb 13 21:52:41 2008 +0000
+++ b/lisp/progmodes/compile.el	Wed Feb 13 22:26:33 2008 +0000
@@ -289,6 +289,10 @@
      " at \\([^ \n]+\\) line \\([0-9]+\\)\\(?:[,.]\\|$\\| \
 during global destruction\\.$\\)" 1 2)
 
+    (php
+     "\\(?:Parse\\|Fatal\\) error: \\(.*\\) in \\(.*\\) on line \\([0-9]+\\)"
+     2 3 nil nil)
+
     (rxp
      "^\\(?:Error\\|Warnin\\(g\\)\\):.*\n.* line \\([0-9]+\\) char\
  \\([0-9]+\\) of file://\\(.+\\)"