]> git.eshelyaron.com Git - emacs.git/commit
Use c-ts-common baseline rule in java-ts-mode (bug#75154)
authorYuan Fu <casouri@gmail.com>
Fri, 14 Feb 2025 02:24:41 +0000 (18:24 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 17 Mar 2025 11:06:07 +0000 (12:06 +0100)
commit7cefb6a78c1fb9bc40a6bfa7f6b10eb1f89aae4a
tree61f9939e0c0216856d1b1118f98c807083fb1ec0
parent53ac01d0afdb3e6b45896f20f0abf72cae2a868b
Use c-ts-common baseline rule in java-ts-mode (bug#75154)

Use it for function parameters.

* lisp/progmodes/java-ts-mode.el:
(java-ts-mode--standalone-predicate): New function.
(java-ts-mode--indent-rules): Comment out rules for function
parameters and statements, and add
c-ts-common-baseline-indent-rule as fallback.
(java-ts-mode): Setup.
(java-ts-mode--first-line-on-multi-line-string): Mark BOL as
unused.
* test/lisp/progmodes/java-ts-mode-resources/indent.erts:
New test.

(cherry picked from commit 93cd55f40e5e1788e55d82c572f1fafac1dee499)
lisp/progmodes/java-ts-mode.el
test/lisp/progmodes/java-ts-mode-resources/indent.erts