; Fix tree-sitter indent anchor preset
* lisp/treesit.el: (treesit-simple-indent-presets): Fix prev-adaptive-prefix.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user