* lisp/treesit.el (treesit-simple-indent-presets): Fix comment-end.
(lambda (node &rest _)
(string-match-p
name (or (treesit-node-field-name node) "")))))
- (cons 'comment-end (lambda (&rest _)
- (looking-at-p treesit-comment-end)))
+ (cons 'comment-end (lambda (_node _parent bol &rest _)
+ (save-excursion
+ (goto-char bol)
+ (looking-at-p treesit-comment-end))))
;; TODO: Document.
(cons 'catch-all (lambda (&rest _) t))