; Fix standalone-parent preset for tree-sitter

* lisp/treesit.el (treesit-simple-indent-presets): Fix typo.
This commit is contained in:
Yuan Fu 2025-02-13 20:30:09 -08:00
parent 4b020b936c
commit adabee8873
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -1962,10 +1962,12 @@ standalone.")
(catch 'term
(while parent
(goto-char (treesit-node-start parent))
(when (if (null treesit-simple-indent-standalone-predicate)
(looking-back (rx bol (* whitespace))
(line-beginning-position))
(funcall parent))
(when
(if (null treesit-simple-indent-standalone-predicate)
(looking-back (rx bol (* whitespace))
(line-beginning-position))
(funcall treesit-simple-indent-standalone-predicate
parent))
(throw 'term (point)))
(setq parent (treesit-node-parent parent)))))))
(cons 'prev-sibling (lambda (node parent bol &rest _)