From: Randy Taylor Date: Thu, 23 Jan 2025 16:16:34 +0000 (-0500) Subject: Fix go-ts-mode type declaration indentation (Bug#75785) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c1a1b02c55aac7ccaa114480f892392280959add;p=emacs.git Fix go-ts-mode type declaration indentation (Bug#75785) * lisp/progmodes/go-ts-mode.el (go-ts-mode--indent-rules): Add rule for type_declaration. (cherry picked from commit 9e687c2871f8fd6146b0c5591d65ee61d8374c5e) --- diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el index 1acbb2766a5..8cb2d8f3362 100644 --- a/lisp/progmodes/go-ts-mode.el +++ b/lisp/progmodes/go-ts-mode.el @@ -103,6 +103,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)