Function: treesit-hs-looking-at-block-start-p
treesit-hs-looking-at-block-start-p is a byte-compiled function
defined in treesit.el.gz.
Signature
(treesit-hs-looking-at-block-start-p)
Documentation
Tree-sitter implementation of hs-looking-at-block-start-predicate.
Source Code
;; Defined in /usr/src/emacs/lisp/treesit.el.gz
(defun treesit-hs-looking-at-block-start-p ()
"Tree-sitter implementation of `hs-looking-at-block-start-predicate'."
(let* ((pred (bound-and-true-p hs-treesit-things))
(thing (treesit-thing-at (point) pred))
(beg (when thing (treesit-node-start thing)))
(end (min (1+ (point)) (point-max))))
(when (and thing (eq (point) beg))
(set-match-data (list beg end))
t)))