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

From: Dmitry Gutov <[email-masked]>
Date: Sat, 4 Mar 2023 01:50:57 +0200

On 04/03/2023 00:29, Yuan Fu wrote:
> In general we shouldn’t mess with indentation inside of multi-line strings,
> Let me see what go-ts-mode is doing.

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)