;; Copyright (C) 2012-2013 Free Software Foundation, Inc.
;; Author: Leo Liu <sdl.web@gmail.com>
-;; Version: 1.2
+;; Version: 1.3
;; Keywords: tools, processes, convenience
;; Created: 2012-03-24
;; URL: https://github.com/leoliu/ack-el
;; Command output lines.
(": \\(.+\\): \\(?:Permission denied\\|No such \\(?:file or directory\\|device or address\\)\\)$"
1 'compilation-error)
- ;; Remove match from ack-error-regexp-alist before fontifying
- ("^Ack \\(?:started\\|finished\\) at.*"
- (0 '(face nil compilation-message nil message nil help-echo nil mouse-face nil) t))
("^Ack \\(exited abnormally\\|interrupt\\|killed\\|terminated\\)\\(?:.*with code \\([0-9]+\\)\\)?.*"
- (0 '(face nil compilation-message nil message nil help-echo nil mouse-face nil) t)
(1 'compilation-error)
(2 'compilation-error nil t)))
"Additional things to highlight in ack output.
;;; in the regexp alist has already been applied in a region.
(defconst ack-error-regexp-alist
- `(;; grouping line (--group or --heading)
+ `(;; Grouping line (--group or --heading).
("^\\([1-9][0-9]*\\)\\(:\\|-\\)\\(?:\\(?4:[1-9][0-9]*\\)\\2\\)?"
ack--file 1 (ack--column-start . ack--column-end)
nil nil (4 compilation-column-face nil t))
- ;; none grouping line (--nogroup or --noheading)
- ("^\\(.+?\\)\\(:\\|-\\)\\([1-9][0-9]*\\)\\2\\(?:\\(?4:[1-9][0-9]*\\)\\2\\)?"
+ ;; None grouping line (--nogroup or --noheading). Avoid matching
+ ;; 'Ack started at Thu Jun 6 12:27:53'.
+ ("^\\(.+?\\)\\(:\\|-\\)\\([1-9][0-9]*\\)\\2\\(?:\\(?:\\(?4:[1-9][0-9]*\\)\\2\\)\\|[^0-9\n]\\|[0-9][^0-9\n]\\|...\\)"
1 3 (ack--column-start . ack--column-end)
- nil nil (4 compilation-column-face nil t))
+ nil 1 (4 compilation-column-face nil t))
("^Binary file \\(.+\\) matches$" 1 nil nil 0 1))
"Ack version of `compilation-error-regexp-alist' (which see).")