Function: orderless--highlight
orderless--highlight is a byte-compiled function defined in
orderless.el.
Signature
(orderless--highlight REGEXPS IGNORE-CASE STRING)
Documentation
Destructively propertize STRING to highlight a match of each of the REGEXPS.
The search is case insensitive if IGNORE-CASE is non-nil.
Source Code
;; Defined in ~/.emacs.d/elpa/orderless-20260519.1029/orderless.el
;;; Highlighting matches
(defun orderless--highlight (regexps ignore-case string)
"Destructively propertize STRING to highlight a match of each of the REGEXPS.
The search is case insensitive if IGNORE-CASE is non-nil."
(cl-loop with case-fold-search = ignore-case
with n = (length orderless-match-faces)
for regexp in regexps and i from 0
when (string-match regexp string) do
(cl-loop
for (x y) on (let ((m (match-data))) (or (cddr m) m)) by #'cddr
when x do
(add-face-text-property
x y
(aref orderless-match-faces (mod i n))
nil string)))
string)