]> 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)
committerYuan Fu <casouri@gmail.com>
Mon, 11 Dec 2023 02:24:27 +0000 (18:24 -0800)
commit7f1bd69cd19504f2bd47e13c530a55ffca08e27d
tree6bb9aaf1a3d9969b7b757c4fa00694de618b5d86
parente23068cb9a1692fc3c50b0b386237a56cae201f4
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.
lisp/progmodes/c-ts-mode.el
test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts