Function: magit-todos--keyword-face
magit-todos--keyword-face is a natively compiled function defined in
magit-todos.el.
Signature
(magit-todos--keyword-face KEYWORD)
Documentation
Return face for KEYWORD.
Source Code
;; Defined in /nix/store/xy37aj9089qvbs5clw0qszpi3hrh3mxx-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-todos-20250928.1611/magit-todos.el
(defun magit-todos--keyword-face (keyword)
"Return face for KEYWORD."
;; TODO(alphapapa): Instead of upcasing here, upcase in the lookup, so it can still be displayed
;; non-uppercase. Preserving the distinction might be useful.
(when magit-todos-ignore-case
(setq keyword (upcase keyword)))
(let ((face (assoc-default keyword hl-todo-keyword-faces #'string=)))
(cl-typecase face
(string (list :inherit 'hl-todo :foreground face))
(t face))))