From fa2a4e7dac3968cbdece78995c2517b8077b60ed Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Wed, 13 Feb 2008 22:26:33 +0000 Subject: [PATCH] add php error regex for compile mode --- lisp/ChangeLog | 4 ++++ lisp/progmodes/compile.el | 4 ++++ 2 files changed, 8 insertions(+) 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://\\(.+\\)" -- 2.39.5