summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2023-03-04 00:37:03 -0800
committerYuan Fu <casouri@gmail.com>2023-03-04 01:20:01 -0800
commitf47b39301589feb2cb846a3c62f94411d993be78 (patch)
treef126f76f3d9cfd9597ee523bb4276e085e402a40
parente0bf2da3db69d074e16ceda3f2b5323f2d22d34b (diff)
downloademacs-f47b39301589feb2cb846a3c62f94411d993be78.tar.gz
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.
-rw-r--r--lisp/progmodes/go-ts-mode.el3
1 files changed, 2 insertions, 1 deletions
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)