; Fix tree-sitter indent anchor preset

* lisp/treesit.el:
(treesit-simple-indent-presets): Fix prev-adaptive-prefix.
This commit is contained in:
Yuan Fu 2023-01-17 01:20:51 -08:00
parent 7c61a30410
commit 9e7a5d58ee
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -1152,6 +1152,9 @@ See `treesit-simple-indent-presets'.")
(and (>= (point) comment-start-bol)
adaptive-fill-regexp
(looking-at adaptive-fill-regexp)
;; If previous line is an empty line, don't
;; indent.
(not (looking-at (rx (* whitespace) eol)))
(match-end 0))))))
;; TODO: Document.
(cons 'grand-parent