[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 9e687c2871f: Fix go-ts-mode type declaration indentation (Bug#7
From: |
Eli Zaretskii |
Subject: |
emacs-30 9e687c2871f: Fix go-ts-mode type declaration indentation (Bug#75785) |
Date: |
Thu, 23 Jan 2025 11:41:46 -0500 (EST) |
branch: emacs-30
commit 9e687c2871f8fd6146b0c5591d65ee61d8374c5e
Author: Randy Taylor <dev@rjt.dev>
Commit: Eli Zaretskii <eliz@gnu.org>
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.
---
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 1e948f7785a..cdd6e427db7 100644
--- a/lisp/progmodes/go-ts-mode.el
+++ b/lisp/progmodes/go-ts-mode.el
@@ -90,6 +90,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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-30 9e687c2871f: Fix go-ts-mode type declaration indentation (Bug#75785),
Eli Zaretskii <=