diff options
author | Juri Linkov <juri@linkov.net> | 2020-12-09 21:16:03 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2020-12-09 21:16:03 +0200 |
commit | 303f0a19cc6b819dd4dc750aa278ca8563d3b64b (patch) | |
tree | 757e3c7404ac9b814b0656b2fce63470f518fce8 /etc/grep.txt | |
parent | ef5e0785aee978c55abaecf44ba63867ff3598c4 (diff) | |
download | emacs-303f0a19cc6b819dd4dc750aa278ca8563d3b64b.tar.gz |
Support highlighting of ripgrep output (bug#44983)
* etc/grep.txt: Add ripgrep samples.
* lisp/progmodes/grep.el (grep-match-regexp): Highlight ripgrep matches too.
(grep-regexp-alist): Remove $ to highlight ripgrep binary file matches.
Diffstat (limited to 'etc/grep.txt')
-rw-r--r-- | etc/grep.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/grep.txt b/etc/grep.txt index 19a3b4b47b7..3dc4aac3c89 100644 --- a/etc/grep.txt +++ b/etc/grep.txt @@ -85,6 +85,12 @@ git --no-pager grep -inH -p -e "org-element-map" lisp/org/org.el[36m=[m20969[36m=[m(defun org-fill-paragraph (&optional justify) lisp/org/org.el[36m:[m21047[36m:[m ([1;31morg-element-map[m +* ripgrep + +rg -nH --color always --no-heading -e grep-match-regexp +[0m[35mlisp/progmodes/grep.el[0m:[0m[32m608[0m: (while (re-search-forward [0m[1m[31mgrep-match-regexp[0m end 1) +Binary file emacs.info matches (found "\u{0}" byte around offset 2222525) + * unknown greps grep -nH -e "xyzxyz" ../info/* |