From f47b39301589feb2cb846a3c62f94411d993be78 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Sat, 4 Mar 2023 00:37:03 -0800 Subject: [PATCH] Fix go-ts-mode multi-line string indentation (bug#61923) * lisp/progmodes/go-ts-mode.el: (go-ts-mode--indent-rules): Add indent rule for multi-line sting. --- lisp/progmodes/go-ts-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el index e8f93d14744..c0ec2822b57 100644 --- a/lisp/progmodes/go-ts-mode.el +++ b/lisp/progmodes/go-ts-mode.el @@ -70,7 +70,8 @@ ((node-is ")") parent-bol 0) ((node-is "]") parent-bol 0) ((node-is "}") parent-bol 0) - ((node-is "labeled_statement") no-indent) + ((node-is "labeled_statement") no-indent 0) + ((parent-is "raw_string_literal") no-indent 0) ((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) -- 2.39.2