From: Vincenzo Pupillo <v.pupillo@gmail.com>
To: 65134@debbugs.gnu.org, danny@dfreeman.email
Subject: bug#65134: [PATCH] * lisp/progmodes/js.el Fix js-ts-mode indent bug in JSX expressions
Date: Tue, 08 Aug 2023 11:22:29 +0200 [thread overview]
Message-ID: <12267622.O9o76ZdvQC@fedora> (raw)
In-Reply-To: <87tttak40q.fsf@dfreeman.email>
Hi,
I confirm the bug and that the patch fixes it.
Thank you Danny.
Vincenzo Pupillo
In data lunedì 7 agosto 2023 22:10:13 CEST, Danny Freeman ha scritto:
> Tags: patch
>
>
> Hello,
>
> I have a patch for a bug I found in js-ts-mode.
> When editing jsx blocks, the indentation does not work.
>
> For example, in a file with the following file with JSX code in it
> and js-ts-mode enabled
>
> ```
> function App() {
> return (
> <div className="App">
> </div>
> );
> }
> ```
>
> placing your cursor at the end of the opening div tag and pressing ENTER
> does not indent, instead there is no indentation.
>
> This patch corrects that by properly expanding the
> `js-jsx--treesit-indent-compatibility-bb1f97b' function, which returns
> some indent rules.
next prev parent reply other threads:[~2023-08-08 9:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-07 20:10 bug#65134: [PATCH] * lisp/progmodes/js.el Fix js-ts-mode indent bug in JSX expressions Danny Freeman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-08 9:22 ` Vincenzo Pupillo [this message]
2023-08-10 9:03 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12267622.O9o76ZdvQC@fedora \
--to=v.pupillo@gmail.com \
--cc=65134@debbugs.gnu.org \
--cc=danny@dfreeman.email \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.