diff options
| author | Evgeni Kolev | 2023-02-08 17:16:02 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-03-26 15:02:52 +0300 |
| commit | 1671e2db8a8d43da58c2f250c314a70aba199e09 (patch) | |
| tree | 64d3de67cd49b68254ccff1a81f68ddd3fb2d1f0 /java/org/gnu | |
| parent | 28db56d5f04879675aabb3fb2195ef2dd27716ba (diff) | |
| download | emacs-1671e2db8a8d43da58c2f250c314a70aba199e09.tar.gz emacs-1671e2db8a8d43da58c2f250c314a70aba199e09.zip | |
Fix 'go-ts-mode's incorrect docstring inserted for methods
The docstring inserted with go-ts-mode's C-c C-d was incorrectly
prefixed with the receiver "(myStruct).":
// (myStruct).act
func (m *myStruct) act () {...}
The above docstring is not correct because the receiver "myStruct"
should not be in the docstring. This commit fixes the incorrect
behavior.
* lisp/progmodes/go-ts-mode.el (go-ts-mode--defun-name): New
optional argument SKIP-PREFIX.
(go-ts-mode-docstring): Call (go-ts-mode--defun-name t)
instead of (treesit-defun-name). (Bug#62371)
Diffstat (limited to 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions