]> git.eshelyaron.com Git - emacs.git/commitdiff
Add lambda_expression-rule to java-ts-mode (bug#60091)
authorTheodor Thornhill <theo@thornhill.no>
Thu, 15 Dec 2022 13:54:17 +0000 (14:54 +0100)
committerYuan Fu <casouri@gmail.com>
Fri, 16 Dec 2022 03:26:42 +0000 (19:26 -0800)
* lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules): New
rule.

lisp/progmodes/java-ts-mode.el

index 559a4efef258aba4ace44ed80440548f8335405c..9da2c254f879213131eed7d6d2b22dd2dd5607b3 100644 (file)
@@ -86,6 +86,7 @@
      ((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)