]> git.eshelyaron.com Git - emacs.git/commitdiff
Add indentation rules for type_arguments
authorTheodor Thornhill <theo@thornhill.no>
Sun, 17 Sep 2023 06:18:54 +0000 (08:18 +0200)
committerTheodor Thornhill <theo@thornhill.no>
Sun, 17 Sep 2023 06:19:05 +0000 (08:19 +0200)
* lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules): Indent
as opening braces.

lisp/progmodes/java-ts-mode.el

index 7f2fc4188a307c9821e4c794e215c14fc8f6ce27..8b7c25b3a22bb56312695027309439f86f5a60f1 100644 (file)
@@ -99,6 +99,8 @@
      ((parent-is "field_declaration") parent-bol java-ts-mode-indent-offset)
      ((parent-is "return_statement") parent-bol java-ts-mode-indent-offset)
      ((parent-is "variable_declarator") parent-bol java-ts-mode-indent-offset)
+     ((match ">" "type_arguments") parent-bol 0)
+     ((parent-is "type_arguments") parent-bol java-ts-mode-indent-offset)
      ((parent-is "method_invocation") parent-bol java-ts-mode-indent-offset)
      ((parent-is "switch_rule") parent-bol java-ts-mode-indent-offset)
      ((parent-is "switch_label") parent-bol java-ts-mode-indent-offset)