Function: treesit-fold--get-face
treesit-fold--get-face is a natively compiled function defined in
treesit-fold-util.el.
Signature
(treesit-fold--get-face OBJ TRIM)
Documentation
Return face name from OBJ.
If argument TRIM is non-nil, trim the OBJ.
Source Code
;; Defined in /nix/store/mpy1l6b4hlzpp59l4vbahq83hqa821ci-emacs-packages-deps/share/emacs/site-lisp/elpa/treesit-fold-0.2.1/treesit-fold-util.el
(defun treesit-fold--get-face (obj trim)
"Return face name from OBJ.
If argument TRIM is non-nil, trim the OBJ."
(let* ((obj (if trim (string-trim obj) obj))
(len (length obj)))
(or (get-text-property 0 'face obj)
(and (<= 1 len)
(get-text-property 1 'face obj)))))