diff options
author | Yuan Fu <casouri@gmail.com> | 2023-03-04 00:37:03 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2023-03-04 01:20:01 -0800 |
commit | f47b39301589feb2cb846a3c62f94411d993be78 (patch) | |
tree | f126f76f3d9cfd9597ee523bb4276e085e402a40 /lisp/progmodes/go-ts-mode.el | |
parent | e0bf2da3db69d074e16ceda3f2b5323f2d22d34b (diff) | |
download | emacs-f47b39301589feb2cb846a3c62f94411d993be78.tar.gz emacs-f47b39301589feb2cb846a3c62f94411d993be78.tar.bz2 emacs-f47b39301589feb2cb846a3c62f94411d993be78.zip |
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.
Diffstat (limited to 'lisp/progmodes/go-ts-mode.el')
-rw-r--r-- | lisp/progmodes/go-ts-mode.el | 3 |
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) |