From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Geoff Jacobsen <geoffjacobsen@gmail.com>
Cc: 61503@debbugs.gnu.org
Subject: bug#61503: 29.0.60; js-ts-mode indent incorrect for multiline strings
Date: Tue, 14 Feb 2023 20:56:55 +0100 [thread overview]
Message-ID: <878rh010mw.fsf@thornhill.no> (raw)
In-Reply-To: <CADU7wBB6ZWcTOrb_JYvyoB_Vf5-hrW-VgxzfTibLN6w0bp3nqw@mail.gmail.com> (Geoff Jacobsen's message of "Tue, 14 Feb 2023 19:30:42 +1300")
Geoff Jacobsen <geoffjacobsen@gmail.com> writes:
> When a multiline (backquote) string is defined in a buffer, with
> major-mode js-ts-mode, the indent function incorrectly indents the
> contents of the string. It should not alter the contents of the string.
>
> Example:
>
> const a = {
> b: `1
> 2
> 3
> `};
>
> is incorrectly changed to:
>
> const a = {
> b: `1
> 2
> 3
> `};
Hi! Thanks for your report!
It should be fixed now on latest emacs-29 branch :-)
Theo
prev parent reply other threads:[~2023-02-14 19:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-14 6:30 bug#61503: 29.0.60; js-ts-mode indent incorrect for multiline strings Geoff Jacobsen
2023-02-14 19:56 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878rh010mw.fsf@thornhill.no \
--to=bug-gnu-emacs@gnu.org \
--cc=61503@debbugs.gnu.org \
--cc=geoffjacobsen@gmail.com \
--cc=theo@thornhill.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).