]> git.eshelyaron.com Git - emacs.git/commit
Align to prev sibling for c-ts-mode indentation
authorYuan Fu <casouri@gmail.com>
Sat, 25 Feb 2023 02:40:52 +0000 (18:40 -0800)
committerYuan Fu <casouri@gmail.com>
Sat, 25 Feb 2023 03:51:43 +0000 (19:51 -0800)
commit4a25fa4586c9d419ca96441120f4b9189e13ae1c
tree13ca08f23139444b5e9c838e7df3813dd8279816
parentd25f24fe57b0bf4d9847ba491ec23c08d44e9d46
Align to prev sibling for c-ts-mode indentation

As requested by a discussion on emacs-devel.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--anchor-prev-sibling): New function.
(c-ts-mode--indent-styles): Indent first child as before, indent the
rest to their previous sibling.  Remove bracketless statement rules
that I forgot to remove previously.
lisp/progmodes/c-ts-mode.el