Function: lua-ts--comment-first-sibling-matcher
lua-ts--comment-first-sibling-matcher is a byte-compiled function
defined in lua-ts-mode.el.gz.
Signature
(lua-ts--comment-first-sibling-matcher NODE &rest _)
Documentation
Matches NODE if its previous sibling is a comment.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/lua-ts-mode.el.gz
(defun lua-ts--comment-first-sibling-matcher (node &rest _)
"Matches NODE if its previous sibling is a comment."
(let ((sibling (treesit-node-prev-sibling node)))
(and (= 0 (treesit-node-index sibling t))
(equal "comment" (treesit-node-type sibling)))))