emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-30 7f76f872ebf: Fix go-ts-mode var spec indentation (Bug#75362)


From: Yuan Fu
Subject: emacs-30 7f76f872ebf: Fix go-ts-mode var spec indentation (Bug#75362)
Date: Thu, 9 Jan 2025 22:07:34 -0500 (EST)

branch: emacs-30
commit 7f76f872ebfd67fb52974426c47bf3d08724d716
Author: Randy Taylor <dev@rjt.dev>
Commit: Yuan Fu <casouri@gmail.com>

    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.
---
 lisp/progmodes/go-ts-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el
index 3322cc24b3e..1e948f7785a 100644
--- a/lisp/progmodes/go-ts-mode.el
+++ b/lisp/progmodes/go-ts-mode.el
@@ -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'.")
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]