aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/treesit.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 8a8f6f02c79..b7da38becc1 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -1053,8 +1053,10 @@ See `treesit-simple-indent-presets'.")
1053 (lambda (node &rest _) 1053 (lambda (node &rest _)
1054 (string-match-p 1054 (string-match-p
1055 name (or (treesit-node-field-name node) ""))))) 1055 name (or (treesit-node-field-name node) "")))))
1056 (cons 'comment-end (lambda (&rest _) 1056 (cons 'comment-end (lambda (_node _parent bol &rest _)
1057 (looking-at-p treesit-comment-end))) 1057 (save-excursion
1058 (goto-char bol)
1059 (looking-at-p treesit-comment-end))))
1058 ;; TODO: Document. 1060 ;; TODO: Document.
1059 (cons 'catch-all (lambda (&rest _) t)) 1061 (cons 'catch-all (lambda (&rest _) t))
1060 1062