Variable: grep-mode-font-lock-keywords

grep-mode-font-lock-keywords is a variable defined in grep.el.gz.

Value

((": \\(.\\{,200\\}\\): \\(?:Permission denied\\|No such \\(?:file or directory\\|device or address\\)\\)$"
  1 grep-error-face)
 ("^Grep[/a-zA-Z]* started.*"
  (0 '(face nil compilation-message nil help-echo nil mouse-face nil)
     t))
 ("^Grep[/a-zA-Z]* finished with \\(?:\\(\\(?:[0-9]+ \\)?match\\(?:es\\)? found\\)\\|\\(no matches found\\)\\).*"
  (0 '(face nil compilation-message nil help-echo nil mouse-face nil)
     t)
  (1 compilation-info-face nil t) (2 compilation-warning-face nil t))
 ("^Grep[/a-zA-Z]* \\(exited abnormally\\|interrupt\\|killed\\|terminated\\)\\(?:.*with code \\([0-9]+\\)\\)?.*"
  (0 '(face nil compilation-message nil help-echo nil mouse-face nil)
     t)
  (1 grep-error-face) (2 grep-error-face nil t))
 ("^.+?\\([-=�]\\)[0-9]+\\([-=]\\).*\n" (0 grep-context-face)
  (1
   (if (eq (char-after (match-beginning 1)) 0)
       `(face nil display ,(match-string 2)))))
 ("^find \\(\\(?:-H \\)?\\. -type d .*\\(?:\\\\)\\|\")\"\\)\\)"
  (1
   (if grep-find-abbreviate grep-find-abbreviate-properties
     '(face nil abbreviated-command t))))
 ("^grep \\( *--exclude.*--exclude[^ ]+\\)"
  (1
   (if grep-find-abbreviate grep-find-abbreviate-properties
     '(face nil abbreviated-command t)))))

Documentation

Additional things to highlight in grep output.

This gets tacked on the end of the generated expressions.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/grep.el.gz
(defvar grep-mode-font-lock-keywords
   '(;; Command output lines.
     (": \\(.\\{,200\\}\\): \\(?:Permission denied\\|No such \\(?:file or directory\\|device or address\\)\\)$"
      1 grep-error-face)
     ;; remove match from grep-regexp-alist before fontifying
     ("^Grep[/a-zA-Z]* started.*"
      (0 '(face nil compilation-message nil help-echo nil mouse-face nil) t))
     ("^Grep[/a-zA-Z]* finished with \\(?:\\(\\(?:[0-9]+ \\)?match\\(?:es\\)? found\\)\\|\\(no matches found\\)\\).*"
      (0 '(face nil compilation-message nil help-echo nil mouse-face nil) t)
      (1 compilation-info-face nil t)
      (2 compilation-warning-face nil t))
     ("^Grep[/a-zA-Z]* \\(exited abnormally\\|interrupt\\|killed\\|terminated\\)\\(?:.*with code \\([0-9]+\\)\\)?.*"
      (0 '(face nil compilation-message nil help-echo nil mouse-face nil) t)
      (1 grep-error-face)
      (2 grep-error-face nil t))
     ;; "filename-linenumber-" format is used for context lines in GNU grep,
     ;; "filename=linenumber=" for lines with function names in "git grep -p".
     ("^.+?\\([-=\0]\\)[0-9]+\\([-=]\\).*\n"
      (0 grep-context-face)
      (1 (if (eq (char-after (match-beginning 1)) ?\0)
             `(face nil display ,(match-string 2)))))
     ;; Hide excessive part of rgrep command
     ("^find \\(\\(?:-H \\)?\\. -type d .*\\(?:\\\\)\\|\")\"\\)\\)"
      (1 (if grep-find-abbreviate grep-find-abbreviate-properties
           '(face nil abbreviated-command t))))
     ;; Hide excessive part of lgrep command
     ("^grep \\( *--exclude.*--exclude[^ ]+\\)"
      (1 (if grep-find-abbreviate grep-find-abbreviate-properties
           '(face nil abbreviated-command t)))))
   "Additional things to highlight in grep output.
This gets tacked on the end of the generated expressions.")