From: Randy Taylor Date: Sun, 5 Jan 2025 21:48:00 +0000 (-0500) Subject: Fix go-ts-mode var spec indentation (Bug#75362) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ae8b7824497e501018b57de4b1f7c5dbce0a6de0;p=emacs.git Fix go-ts-mode var spec indentation (Bug#75362) v0.21.1 and onwards changed how this was indented. * lisp/progmodes/go-ts-mode.el (go-ts-mode--indent-rules): Add rule for var_spec_list. (cherry picked from commit 7f76f872ebfd67fb52974426c47bf3d08724d716) --- diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el index ef5e3dd350d..1acbb2766a5 100644 --- a/lisp/progmodes/go-ts-mode.el +++ b/lisp/progmodes/go-ts-mode.el @@ -106,6 +106,7 @@ ((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) + ((parent-is "var_spec_list") parent-bol go-ts-mode-indent-offset) (no-node parent-bol 0))) "Tree-sitter indent rules for `go-ts-mode'.")