>> Maybe use the comment thing first, and then match “comment” with the node type? > > We need to introduce the new thing named "comment". > It's necessary to add treesit support for 'forward-comment' > that is used in many packages including 'hideshow'. > > This means adding the variable 'forward-comment-function' > with the default value 'forward-comment-default-function'. > Then will override it with 'treesit-forward-comment' that > uses the comment thing. So here is the treesit implementation for the new variable forward-comment-function: