From: Mark A. Hershberger Date: Wed, 13 Feb 2008 22:26:33 +0000 (+0000) Subject: add php error regex for compile mode X-Git-Tag: emacs-pretest-23.0.90~7964 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fa2a4e7dac3968cbdece78995c2517b8077b60ed;p=emacs.git add php error regex for compile mode --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3b588094479..e319541d28d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 * net/ange-ftp.el (ange-ftp-quote-string): Use diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 9dca3553b14..65391251e25 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -289,6 +289,10 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) " 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://\\(.+\\)"