]> git.eshelyaron.com Git - emacs.git/commit
Fix indentation for else clause in c-ts-mode (bug#67417)
authorYuan Fu <casouri@gmail.com>
Mon, 27 Nov 2023 00:38:41 +0000 (16:38 -0800)
committerYuan Fu <casouri@gmail.com>
Mon, 27 Nov 2023 01:17:35 +0000 (17:17 -0800)
commitf8d9dc26c78366e1f2de9dd847fe4744f607748d
tree34abbbd0f691eec60eacdc704ede3f42ed6a9227
parentbf0b0c9c73d4793beb11e6125496d0e72d4dd67a
Fix indentation for else clause in c-ts-mode (bug#67417)

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--indent-styles): Add indentation for children of
else_clause.
* test/lisp/progmodes/c-ts-mode-resources/indent.erts:
(Name): Add test for else-break.  Also make the test such that it
needs to indent correctly from scratch (rather than maintaining the
already correct indentation.)
lisp/progmodes/c-ts-mode.el
test/lisp/progmodes/c-ts-mode-resources/indent.erts