GNU bug report logs - #61923
30.0.50; go-ts-mode, multiline raw-string-literal wrong indentation

Previous Next

Package: emacs;

Reported by: Gleb Zakharov <snyssfx <at> posteo.net>

Date: Thu, 2 Mar 2023 22:21:01 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 29.1

Done: Dmitry Gutov <dmitry <at> gutov.dev>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Gleb Zakharov <snyssfx <at> posteo.net>
To: Dmitry Gutov <dgutov <at> yandex.ru>, Yuan Fu <casouri <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 61923 <at> debbugs.gnu.org
Subject: bug#61923: 30.0.50; go-ts-mode, multiline raw-string-literal wrong indentation
Date: Sat, 04 Mar 2023 17:39:55 +0000
Dmitry Gutov <dgutov <at> yandex.ru> writes:

> 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)

Thank you, it works for me as well!




This bug report was last modified 1 year and 179 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.