]> git.eshelyaron.com Git - emacs.git/commit
Fix c-ts-mode empty line indentation (bug#61893)
authorYuan Fu <casouri@gmail.com>
Wed, 1 Mar 2023 22:01:47 +0000 (14:01 -0800)
committerYuan Fu <casouri@gmail.com>
Wed, 1 Mar 2023 22:07:01 +0000 (14:07 -0800)
commitb06d5519664b0f417be7f415964b0a4decc0f732
treef5e166d0dfd03ab1ad9419faed4da1493ee681f5
parent6b2720778dc9531c0157bc7e773d2011bdf905e3
Fix c-ts-mode empty line indentation (bug#61893)

* lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles): Make the
"rest sibling" matchers catch the case where NODE is nil, when
indenting an empty line.
* test/lisp/progmodes/c-ts-mode-resources/indent.erts: New test.
lisp/progmodes/c-ts-mode.el
test/lisp/progmodes/c-ts-mode-resources/indent.erts