aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorFilipp Gunbin2019-10-31 21:39:01 +0300
committerFilipp Gunbin2019-11-01 15:20:42 +0300
commit0bffb3e69d4f45b4f4bc553af3ed6e78cfd6bd49 (patch)
tree3b8d9f74915c1202d8523c4da4c0413ee091ff23 /lisp
parent8758c96dc7f252944eb97b95c92081b157084477 (diff)
downloademacs-0bffb3e69d4f45b4f4bc553af3ed6e78cfd6bd49.tar.gz
emacs-0bffb3e69d4f45b4f4bc553af3ed6e78cfd6bd49.zip
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')
-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))
181 (aix 181 (aix
182 " in line \\([0-9]+\\) of file \\([^ \n]+[^. \n]\\)\\.? " 2 1) 182 " in line \\([0-9]+\\) of file \\([^ \n]+[^. \n]\\)\\.? " 2 1)
183 183
184 ;; Checkstyle task may report its own severity level: "[checkstyle] [ERROR] ..."
185 ;; (see AuditEventDefaultFormatter.java in checkstyle sources).
184 (ant 186 (ant
185 "^[ \t]*\\[[^] \n]+\\][ \t]*\\(\\(?:[A-Za-z]:\\\\\\)?[^: \n]+\\):\\([0-9]+\\):\\(?:\\([0-9]+\\):\\([0-9]+\\):\\([0-9]+\\):\\)?\ 187 "^[ \t]*\\(?:\\[[^] \n]+\\][ \t]*\\)\\{1,2\\}\\(\\(?:[A-Za-z]:\\)?[^: \n]+\\):\
186\\( warning\\)?" 1 (2 . 4) (3 . 5) (6)) 188\\([0-9]+\\):\\(?:\\([0-9]+\\):\\([0-9]+\\):\\([0-9]+\\):\\)?\\( warning\\)?"
189 1 (2 . 4) (3 . 5) (6))
187 190
188 (bash 191 (bash
189 "^\\([^: \n\t]+\\): line \\([0-9]+\\):" 1 2) 192 "^\\([^: \n\t]+\\): line \\([0-9]+\\):" 1 2)