bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#67556: 29.1; java-ts-mode doesn't indent open curly brackets properl


From: Dmitry Gutov
Subject: bug#67556: 29.1; java-ts-mode doesn't indent open curly brackets properly
Date: Mon, 12 Feb 2024 00:42:50 +0200
User-agent: Mozilla Thunderbird

On 11/02/2024 10:43, Eli Zaretskii wrote:
Ping! Ping! Ping! Yuan and Theo, could you please chime in?

Here's a minimal patch, consisting of a new rule and a couple of replacements where the new standalone-parent anchor is used instead of the helper c-ts-common-statement-offset.

Because the latter behaves differently when the opening curly is on a separate line, and we don't really want that.

A more finished change will likely either switch over to standalone-parent completely, or go back and revamp c-ts-common-statement-offset to avoid this distinction (despite the name, it only remains in use in java-ts-mode these days).

The former has been a simpler route so far, so I suggest we at least commit the attached.

Attachment: java-ts-mode-indent.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]