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)
committerYuan Fu <casouri@gmail.com>
Fri, 10 Jan 2025 03:07:24 +0000 (19:07 -0800)
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.

lisp/progmodes/go-ts-mode.el

index 3322cc24b3e06a413508f240c39742d312ce93f7..1e948f7785a0c46748fce24dafc9a79963e005ef 100644 (file)
@@ -93,6 +93,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'.")