summaryrefslogtreecommitdiff
path: root/lisp/progmodes/compile.el
diff options
context:
space:
mode:
authorFilipp Gunbin <fgunbin@fastmail.fm>2019-10-31 21:39:01 +0300
committerFilipp Gunbin <fgunbin@fastmail.fm>2019-11-01 15:20:42 +0300
commit0bffb3e69d4f45b4f4bc553af3ed6e78cfd6bd49 (patch)
tree3b8d9f74915c1202d8523c4da4c0413ee091ff23 /lisp/progmodes/compile.el
parent8758c96dc7f252944eb97b95c92081b157084477 (diff)
downloademacs-0bffb3e69d4f45b4f4bc553af3ed6e78cfd6bd49.tar.gz
Make ant regexp in compilation-error-regexp-alist-alist more lax
* lisp/progmodes/compile.el: Make ant regexp accept filenames that may occur on Cygwin (like c:/test) and optional additional severity level after task name. * etc/compilation.txt: Add sample.
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r--lisp/progmodes/compile.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index b0bb728de0e..f412dbcd546 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -181,9 +181,12 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
(aix
" in line \\([0-9]+\\) of file \\([^ \n]+[^. \n]\\)\\.? " 2 1)
+ ;; Checkstyle task may report its own severity level: "[checkstyle] [ERROR] ..."
+ ;; (see AuditEventDefaultFormatter.java in checkstyle sources).
(ant
- "^[ \t]*\\[[^] \n]+\\][ \t]*\\(\\(?:[A-Za-z]:\\\\\\)?[^: \n]+\\):\\([0-9]+\\):\\(?:\\([0-9]+\\):\\([0-9]+\\):\\([0-9]+\\):\\)?\
-\\( warning\\)?" 1 (2 . 4) (3 . 5) (6))
+ "^[ \t]*\\(?:\\[[^] \n]+\\][ \t]*\\)\\{1,2\\}\\(\\(?:[A-Za-z]:\\)?[^: \n]+\\):\
+\\([0-9]+\\):\\(?:\\([0-9]+\\):\\([0-9]+\\):\\([0-9]+\\):\\)?\\( warning\\)?"
+ 1 (2 . 4) (3 . 5) (6))
(bash
"^\\([^: \n\t]+\\): line \\([0-9]+\\):" 1 2)