]> git.eshelyaron.com Git - emacs.git/commit
Use a heuristic to support method chaining in c-ts-common
authorYuan Fu <casouri@gmail.com>
Fri, 14 Feb 2025 05:49:55 +0000 (21:49 -0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 14 Feb 2025 11:44:29 +0000 (12:44 +0100)
commit383394b19fed487b4e1b90233c1354b56669ebdd
tree4a562a177f4ec71ac3674bcc8ba7df2933f15da3
parentdb759f8048b87e2fc8d15f400e204c3a2b64f684
Use a heuristic to support method chaining in c-ts-common

Test for "." at the beginning of a line to detect chained method.

* lisp/progmodes/c-ts-common.el:
(c-ts-common--standalone-predicate): New function.
(c-ts-common--standalone-parent):
(c-ts-common--prev-standalone-sibling): Use the new heuristic.

(cherry picked from commit 7ac578c57ce14a6f5e4568712ec16ebcbc9cc9ba)
lisp/progmodes/c-ts-common.el