]> git.eshelyaron.com Git - emacs.git/commit
Fix c-ts-mode indentation
authorYuan Fu <casouri@gmail.com>
Sun, 5 Mar 2023 23:22:36 +0000 (15:22 -0800)
committerYuan Fu <casouri@gmail.com>
Sun, 5 Mar 2023 23:22:36 +0000 (15:22 -0800)
commit1c67e4f895faf895f3ff132261edcbe6d08bb91d
tree2eee93fac27d630ddb7770442e8cd06be2568577
parentd724d7d6785db7224b5a9f04b092d8671bddd290
Fix c-ts-mode indentation

Mentioned in bug#61893.

* lisp/progmodes/c-ts-mode.el (c-ts-mode--anchor-prev-sibling): Handle
"#elif" and "#else".
* test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts: Add an
"#elif" to the test.
lisp/progmodes/c-ts-mode.el
test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts