]> git.eshelyaron.com Git - emacs.git/commit
Fix empty line indentation in c-ts-mode (bug#61997)
authorYuan Fu <casouri@gmail.com>
Wed, 8 Mar 2023 00:35:23 +0000 (16:35 -0800)
committerYuan Fu <casouri@gmail.com>
Wed, 8 Mar 2023 00:42:44 +0000 (16:42 -0800)
commitf9b7913656f9e4728a1140b61ddb7f07009e28e6
tree0f98f734586cb9e76c2c225ef143369c04359192
parent90504f9d8982c12a033286fe06b40583f553d267
Fix empty line indentation in c-ts-mode (bug#61997)

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--indent-styles): Handle the empty line case.
* test/lisp/progmodes/c-ts-mode-resources/indent.erts: New test.

* doc/lispref/modes.texi (Parser-based Indentation): Update manual.
* lisp/treesit.el (treesit-simple-indent-presets): Support null as
a value for NODE-TYPE in the 'match' matcher.
doc/lispref/modes.texi
lisp/progmodes/c-ts-mode.el
lisp/treesit.el
test/lisp/progmodes/c-ts-mode-resources/indent.erts