]> git.eshelyaron.com Git - emacs.git/commit
Fix c-ts-mode indentation
authorYuan Fu <casouri@gmail.com>
Sun, 5 Mar 2023 23:07:58 +0000 (15:07 -0800)
committerYuan Fu <casouri@gmail.com>
Sun, 5 Mar 2023 23:07:58 +0000 (15:07 -0800)
commitd724d7d6785db7224b5a9f04b092d8671bddd290
treef7e58534ea56f8b56b22dab7cd3a9e3c9499694e
parent7292b24c80143d697870a670963f136db375580b
Fix c-ts-mode indentation

Mentioned in bug#61893, although not the subject of it.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--anchor-prev-sibling): Fix the child index for preproc_else
and preproc_elif case.
* test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts:
New test.
lisp/progmodes/c-ts-mode.el
test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts