]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix go-ts-mode var spec indentation (Bug#75362)
authorRandy Taylor <dev@rjt.dev>
Sun, 5 Jan 2025 21:48:00 +0000 (16:48 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sun, 12 Jan 2025 10:58:58 +0000 (11:58 +0100)
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)

lisp/progmodes/go-ts-mode.el

index ef5e3dd350d76aefbfc20a4dfa95900c538defe1..1acbb2766a571a5383b87123ff45f7f82c05a9f0 100644 (file)
      ((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'.")