emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 f47b3930158 1/2: Fix go-ts-mode multi-line string indentation (


From: Yuan Fu
Subject: emacs-29 f47b3930158 1/2: Fix go-ts-mode multi-line string indentation (bug#61923)
Date: Sat, 4 Mar 2023 04:28:40 -0500 (EST)

branch: emacs-29
commit f47b39301589feb2cb846a3c62f94411d993be78
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    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)



reply via email to

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