all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Renato Ferreira <renatofdds@gmail.com>
To: 27000@debbugs.gnu.org
Subject: bug#27000: 25.2; js-jsx-mode incorrect indentation
Date: Fri, 19 May 2017 19:45:28 -0300	[thread overview]
Message-ID: <87zie8bh4n.fsf@gmail.com> (raw)

Hello,

(I don't know if this bug has the same root cause from bug#24986, so my
apologies if it does.)

Using js-jsx-mode produces incorrect indentation on nested JSX elements
when there is an element inside a parentheses inside a JS expression:

function testA() {
	return (
		<div>
			<div> { ( <div/> ) } </div>
				</div>
	);
}

function testB() {
	return (
		<div>
			<div> { <div/> } </div>
		</div>
	);
}

testA indents correctly, but testB does not. This causes all sorts of
indentations problems after an incorrect indented line.

Thanks a lot in advance!





             reply	other threads:[~2017-05-19 22:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-19 22:45 Renato Ferreira [this message]
2019-06-05  3:09 ` bug#27000: 25.2; js-jsx-mode incorrect indentation Jackson Ray Hamilton

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=87zie8bh4n.fsf@gmail.com \
    --to=renatofdds@gmail.com \
    --cc=27000@debbugs.gnu.org \
    /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.