]> git.eshelyaron.com Git - emacs.git/commitdiff
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)
committerEshel Yaron <me@eshelyaron.com>
Sat, 25 Jan 2025 17:43:16 +0000 (18:43 +0100)
* lisp/progmodes/go-ts-mode.el (go-ts-mode--indent-rules):
Add rule for type_declaration.

(cherry picked from commit 9e687c2871f8fd6146b0c5591d65ee61d8374c5e)

lisp/progmodes/go-ts-mode.el

index 1acbb2766a571a5383b87123ff45f7f82c05a9f0..8cb2d8f336265ad9a4802680cdc23f513a1e57ff 100644 (file)
      ((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)