Function: treesit-fold-summary--valid-content-p
treesit-fold-summary--valid-content-p is a natively compiled function
defined in treesit-fold-summary.el.
Signature
(treesit-fold-summary--valid-content-p CONTENT)
Documentation
Return non-nil if CONTENT is a valid document string for extraction.
Some programmers use some type of characters for splitting the code module into sections. For instance, ===, ---, ///, =-=, etc. Try to omit these type of content by checking the word boundary's existence.
Source Code
;; Defined in /nix/store/mpy1l6b4hlzpp59l4vbahq83hqa821ci-emacs-packages-deps/share/emacs/site-lisp/elpa/treesit-fold-0.2.1/treesit-fold-summary.el
;;
;; (@* "Parsers" )
;;
(defun treesit-fold-summary--valid-content-p (content)
"Return non-nil if CONTENT is a valid document string for extraction.
Some programmers use some type of characters for splitting the code module
into sections. For instance, ===, ---, ///, =-=, etc. Try to omit these
type of content by checking the word boundary's existence."
(string-match-p "\\w" content))