]> git.eshelyaron.com Git - emacs.git/commit
Fix c-ts-mode indentation (bug#61291)
authorYuan Fu <casouri@gmail.com>
Sun, 5 Feb 2023 23:20:52 +0000 (15:20 -0800)
committerYuan Fu <casouri@gmail.com>
Tue, 7 Feb 2023 02:28:39 +0000 (18:28 -0800)
commitd68ff6016d0ca011b5bf0fd05578fe1abb2e53a9
tree7b2fb360b0f2cbcb01631e03a907f5962c0ef81a
parent2ac8c4bbd6f47751a68b0230310f6fddd7da8de5
Fix c-ts-mode indentation (bug#61291)

Fix indentation for the semicolon in

while (str_a[i++] == str_b[j++])
  ;

* lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles): New rule.
* 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