; Fix tree-sitter indent anchor preset
* lisp/treesit.el: (treesit-simple-indent-presets): Fix prev-adaptive-prefix.
This commit is contained in:
parent
7c61a30410
commit
9e7a5d58ee
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue