Files
emacs/lisp/progmodes
Yuan Fu e37cd4fa59 Add baseline tree-sitter indent rule for C-like languages
I found a really good baseline indent rule that handles a wide
range of situations very well.  Now major modes can just start
with this rule and add exceptions on top.

This is worth mentioning in the manual, but that'll be a large
change, and doesn't have to be included in this commit.

* lisp/progmodes/c-ts-common.el:

(c-ts-common-list-indent-style): New variable.
(c-ts-common--standalone-parent):
(c-ts-common--prev-standalone-sibling):
(c-ts-common-parent-ignore-preproc):
(c-ts-common-baseline-indent-rule): New function.

* lisp/treesit.el (treesit--indent-prev-line-node): New function.
(treesit-simple-indent-presets): Add new preset.
2024-12-01 17:53:22 -08:00
..
2024-11-21 10:06:19 +01:00
2024-10-24 16:50:07 +08:00
2024-11-21 10:06:19 +01:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-10-27 07:49:32 +01:00
2024-10-24 16:50:07 +08:00
2024-10-04 01:38:11 +02:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-11-30 06:44:06 -05:00
2024-10-24 16:50:07 +08:00
2024-11-30 06:44:06 -05:00
2024-11-23 16:46:30 +01:00
2024-11-30 06:44:06 -05:00