Function: rainbow-delimiters--apply-color

rainbow-delimiters--apply-color is a byte-compiled function defined in rainbow-delimiters.el.

Signature

(rainbow-delimiters--apply-color LOC DEPTH MATCH)

Documentation

Highlight a single delimiter at LOC according to DEPTH.

LOC is the location of the character to add text properties to. DEPTH is the nested depth at LOC, which determines the face to use. MATCH is nil iff it's a mismatched closing delimiter.

Source Code

;; Defined in ~/.emacs.d/elpa/rainbow-delimiters-20210515.1254/rainbow-delimiters.el
(defun rainbow-delimiters--apply-color (loc depth match)
  "Highlight a single delimiter at LOC according to DEPTH.

LOC is the location of the character to add text properties to.
DEPTH is the nested depth at LOC, which determines the face to use.
MATCH is nil iff it's a mismatched closing delimiter."
  (let ((face (funcall rainbow-delimiters-pick-face-function depth match loc)))
    (when face
      (font-lock-prepend-text-property loc (1+ loc) 'face face))))