>> +(defun treesit-hs-inside-comment-p () >> + (let ((thing (or (treesit-thing-at (point) "comment") >> + (unless (bobp) >> + (treesit-thing-at (1- (point)) "comment"))))) >> + (when thing >> + (list (treesit-node-start thing) (treesit-node-end thing))))) >> + > > FYI some grammar calls comments line_comment and block_comment. Maybe > use the comment thing first, and then match “comment” with the node type? Now this tries to use the comment thing first, and then falls back to “comment”.