mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-21 20:37:38 +00:00
; Fix comment-end in treesit-simple-indent-presets
* lisp/treesit.el (treesit-simple-indent-presets): Fix comment-end.
This commit is contained in:
parent
e9f86182ce
commit
73c94d5a9f
1 changed files with 4 additions and 2 deletions
|
|
@ -1053,8 +1053,10 @@ See `treesit-simple-indent-presets'.")
|
|||
(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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue