Fix go-ts-mode type declaration indentation (Bug#75785)
authorRandy Taylor <dev@rjt.dev>
Thu, 23 Jan 2025 16:16:34 +0000 (11:16 -0500)
committerEli Zaretskii <eliz@gnu.org>
Thu, 23 Jan 2025 16:40:26 +0000 (18:40 +0200)
* lisp/progmodes/go-ts-mode.el (go-ts-mode--indent-rules):
Add rule for type_declaration.

lisp/progmodes/go-ts-mode.el

index 1e948f7785a0c46748fce24dafc9a79963e005ef..cdd6e427db7fa780915c38fd07f60693611ecc0e 100644 (file)
@@ -90,6 +90,7 @@
      ((parent-is "parameter_list") parent-bol go-ts-mode-indent-offset)
      ((parent-is "select_statement") parent-bol 0)
      ((parent-is "type_case") parent-bol go-ts-mode-indent-offset)
+     ((parent-is "type_declaration") parent-bol go-ts-mode-indent-offset)
      ((parent-is "type_spec") parent-bol go-ts-mode-indent-offset)
      ((parent-is "type_switch_statement") parent-bol 0)
      ((parent-is "var_declaration") parent-bol go-ts-mode-indent-offset)