]> git.eshelyaron.com Git - emacs.git/commit
Fix c-ts-mode indent heuristic (bug#67417)
authorYuan Fu <casouri@gmail.com>
Sun, 10 Dec 2023 09:24:25 +0000 (01:24 -0800)
committerYuan Fu <casouri@gmail.com>
Sun, 10 Dec 2023 09:24:25 +0000 (01:24 -0800)
commitf0734e1c0d19d9f244b7ab60dcd98f8d031e3d38
treeb432620ad1f4e232ce237e2be6449db7245a3f84
parent08fc6bace202a13d93fc76943c41f19acaab9c73
Fix c-ts-mode indent heuristic (bug#67417)

This is a continuation of the first two patches for bug#67417.  The
c-ts-mode--prev-line-match heuristic we added is too broad, so for now
we are just adding a very specific heuristic for the else case.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--prev-line-match): Remove function.
(c-ts-mode--else-heuristic): New function.
(c-ts-mode--indent-styles): Use c-ts-mode--else-heuristic.
lisp/progmodes/c-ts-mode.el