]> code.delx.au - gnu-emacs/commitdiff
Update Maven compilation-mode entry to distinguish warnings
authorPaul Pogonyshev <pogonyshev@gmail.com>
Mon, 18 May 2015 21:00:09 +0000 (00:00 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 18 May 2015 21:00:09 +0000 (00:00 +0300)
* lisp/progmodes/compile.el
(compilation-error-regexp-alist-alist): Update Maven entry to
distinguish warnings (bug#20556).

lisp/progmodes/compile.el

index 9d36e91cf8f49e1a378b0e09eeabbde9bbe84619..a58e393779ade066e7f8c74d33b0ed4522b8ce9a 100644 (file)
@@ -216,7 +216,7 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
     ;; due to matching filenames via \\(.*?\\).  This might be faster.
     (maven
      ;; Maven is a popular free software build tool for Java.
-     "\\([^ \n]\\(?:[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\] " 1 2 3)
+     "\\(\\[WARNING\\] *\\)?\\([^ \n]\\(?:[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\] " 2 3 4 (1))
 
     (jikes-line
      "^ *\\([0-9]+\\)\\.[ \t]+.*\n +\\(<-*>\n\\*\\*\\* \\(?:Error\\|Warnin\\(g\\)\\)\\)"