]> git.eshelyaron.com Git - emacs.git/commit
Fix c-ts-mode bracketless indentation for BSD style (bug#66152)
authorYuan Fu <casouri@gmail.com>
Mon, 11 Dec 2023 02:24:27 +0000 (18:24 -0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 21 Dec 2023 20:51:25 +0000 (21:51 +0100)
commit3da7ad06194044bd9cc5e6349ce151420e361c77
treef6f3552314f2bf30629a6401821e2b716dc54a7f
parent1caa174ee6491b6c14f8f94eeaa55eb0ede8f9c7
Fix c-ts-mode bracketless indentation for BSD style (bug#66152)

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--indent-styles): Make sure the BSD rules only apply to
opening bracket (compound_statement), then bracketless statements will
fallback to common rules.
* test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts: Copy the
bracketless test from indent.erts to here.

(cherry picked from commit 7f1bd69cd19504f2bd47e13c530a55ffca08e27d)
lisp/progmodes/c-ts-mode.el
test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts