; Fix standalone-parent preset for tree-sitter
* lisp/treesit.el (treesit-simple-indent-presets): Fix typo.
This commit is contained in:
parent
4b020b936c
commit
adabee8873
1 changed files with 6 additions and 4 deletions
|
@ -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 _)
|
||||
|
|
Loading…
Add table
Reference in a new issue