Function: treesit-fold-summary--doc-extract
treesit-fold-summary--doc-extract is a natively compiled function
defined in treesit-fold-summary.el.
Signature
(treesit-fold-summary--doc-extract DOC-STR SYM)
Documentation
Default way to extract the doc summary from DOC-STR using SYM.
Source Code
;; Defined in /nix/store/mpy1l6b4hlzpp59l4vbahq83hqa821ci-emacs-packages-deps/share/emacs/site-lisp/elpa/treesit-fold-0.2.1/treesit-fold-summary.el
(defun treesit-fold-summary--doc-extract (doc-str sym)
"Default way to extract the doc summary from DOC-STR using SYM."
(let* ((lines (treesit-fold-summary--extract-summary doc-str sym)) (summary (nth 0 lines)))
(when summary (setq summary (string-trim summary)))
(if (string-empty-p summary) nil summary)))