Subject: 30.0.50; [PATCH] Add lambda_expression rule to java-ts-mode
From: Theodor Thornhill <[email-masked]>
To: [email-masked]
Date: Thu, 15 Dec 2022 14:56:12 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Yuan,

Can you apply this one?

Theo

From aff3aa5fb0d2ad84d21df8155e913d0fc7cf1337 Mon Sep 17 00:00:00 2001
From: Theodor Thornhill <[email-masked]>
Date: Thu, 15 Dec 2022 14:54:17 +0100
Subject: [PATCH] Add lambda_expression-rule to java-ts-mode

* lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules): New
rule.
---
 lisp/progmodes/java-ts-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el
index ac591a0859..a0c818e0dd 100644
--- a/lisp/progmodes/java-ts-mode.el
+++ b/lisp/progmodes/java-ts-mode.el
@@ -86,6 +86,7 @@ java-ts-mode--indent-rules
      ((parent-is "method_invocation") parent-bol java-ts-mode-indent-offset)
      ((parent-is "switch_rule") parent-bol java-ts-mode-indent-offset)
      ((parent-is "ternary_expression") parent-bol java-ts-mode-indent-offset)
+     ((parent-is "lambda_expression") parent-bol java-ts-mode-indent-offset)
      ((parent-is "element_value_array_initializer") parent-bol java-ts-mode-indent-offset)
      ((parent-is "function_definition") parent-bol 0)
      ((parent-is "conditional_expression") first-sibling 0)
-- 
2.34.1