Function: php-ts-mode--parent-html-bol
php-ts-mode--parent-html-bol is a byte-compiled function defined in
php-ts-mode.el.gz.
Signature
(php-ts-mode--parent-html-bol NODE PARENT BOL &rest _)
Documentation
Find the first non-space characters of the HTML tags before NODE.
When NODE is nil call php-ts-mode--open-statement-group-heuristic.
PARENT is NODE's parent, BOL is the beginning of non-whitespace
characters of the current line.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/php-ts-mode.el.gz
(defun php-ts-mode--parent-html-bol (node parent bol &rest _)
"Find the first non-space characters of the HTML tags before NODE.
When NODE is nil call `php-ts-mode--open-statement-group-heuristic'.
PARENT is NODE's parent, BOL is the beginning of non-whitespace
characters of the current line."
(if (null node)
;; If NODE is nil it could be an open statement-group.
(php-ts-mode--open-statement-group-heuristic node parent bol)
(save-excursion
(let ((html-node (treesit-search-forward node "text" t)))
(if html-node
(let ((end-html (treesit-node-end html-node)))
(goto-char end-html)
(backward-word)
(back-to-indentation)
(point))
(treesit-node-start parent))))))