]> git.eshelyaron.com Git - emacs.git/commit
Fix c-ts-common-statement-offset and c-ts-common--node-is
authorYuan Fu <casouri@gmail.com>
Sat, 25 Feb 2023 03:31:34 +0000 (19:31 -0800)
committerYuan Fu <casouri@gmail.com>
Sat, 25 Feb 2023 03:51:43 +0000 (19:51 -0800)
commitd25f24fe57b0bf4d9847ba491ec23c08d44e9d46
treef89da28a02d6aa47a70db90877edd3b9284f43ad
parentc92360c7a3bf8f33d4fe4e7cc351c33ab4a7d5ca
Fix c-ts-common-statement-offset and c-ts-common--node-is

* lisp/progmodes/c-ts-common.el:
(c-ts-common--node-is): Guard against case where the node has no field
name.
(c-ts-common-statement-offset): Do indent a level if the "if" in the
"else if" is on an independent line.
lisp/progmodes/c-ts-common.el