]> git.eshelyaron.com Git - emacs.git/commit
Standardize and promote c-ts-mode's custom matcher and anchor
authorYuan Fu <casouri@gmail.com>
Mon, 2 Dec 2024 00:40:05 +0000 (16:40 -0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Dec 2024 17:04:44 +0000 (18:04 +0100)
commit25c1d5c4dc2467e975175f49448db95fc35dee97
treee810077094fc185d8cc2f65bb8e23d5a32c8c03e
parent29611812b6c0f3db97af26e3cc55d67d6e368421
Standardize and promote c-ts-mode's custom matcher and anchor

Specifically, standalone-parent and prev-sibling.  The c-ts-mode
custom version skips labels and proproc directives.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--standalone-parent-skip-preproc): Rename to
c-ts-mode--standalone-parent, and make it skip labels too.
(c-ts-mode--preproc-indent-rules): Rename standalone-parent and
prev-sibling.
(c-ts-mode--label-indent-rules): Use custom standalone-parent
and prev-sibling.

(cherry picked from commit 9acf6eff01a82c3fe9ca8897f38b76dbb6079648)
lisp/progmodes/c-ts-mode.el