bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#61923: 30.0.50; go-ts-mode, multiline raw-string-literal wrong inden


From: Dmitry Gutov
Subject: bug#61923: 30.0.50; go-ts-mode, multiline raw-string-literal wrong indentation
Date: Sun, 26 Nov 2023 18:37:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

Version: 29.1

On 26/11/2023 17:47, Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote:
Gleb Zakharov<snyssfx@posteo.net>  writes:

Dmitry Gutov<dgutov@yandex.ru>  writes:

This seems to work:

diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el
index e8f93d14744..1857c67bb82 100644
--- a/lisp/progmodes/go-ts-mode.el
+++ b/lisp/progmodes/go-ts-mode.el
@@ -71,6 +71,7 @@ go-ts-mode--indent-rules
        ((node-is "]") parent-bol 0)
        ((node-is "}") parent-bol 0)
        ((node-is "labeled_statement") no-indent)
+     ((parent-is "raw_string_literal") no-indent)
        ((parent-is "argument_list") parent-bol go-ts-mode-indent-offset)
        ((parent-is "block") parent-bol go-ts-mode-indent-offset)
        ((parent-is "communication_case") parent-bol
go-ts-mode-indent-offset)
Thank you, it works for me as well!
It seems that this bug could be closed: AFAICT the fix is installed on
master and Gleb was happy with it.

Closing!





reply via email to

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