Function: consult-eglot--format-file-line-match

consult-eglot--format-file-line-match is a natively compiled function defined in consult-eglot.el.

Signature

(consult-eglot--format-file-line-match FILE LINE &optional MATCH)

Documentation

Format string FILE LINE and MATCH with faces.

Source Code

;; Defined in /nix/store/3v6wy8b5xagm658m9sa8vhwzkykl5mv6-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-eglot-20260613.1443/consult-eglot.el
(defun consult-eglot--format-file-line-match (file line &optional match)
  "Format string FILE LINE and MATCH with faces."
  (setq line (number-to-string line)
        match (concat file ":" line (when match ":") match)
        file (length file))
  (put-text-property 0 file 'face 'consult-file match)
  (put-text-property (1+ file) (+ 1 file (length line)) 'face 'consult-line-number match)
  match)