Closed rbong closed 8 years ago
An actual bug report of an actual bug by a person who has read the README! A true unicorn.
I've repro'd this. I'm not sure off the top of my head why it's happening (since the outer return ();
indents fine), but thank you for reporting; I will look into it when I have some time.
Similar issue happens when using ?:
operator:
<Navbar.Form pullRight>
{
auth.loggedIn()
? <Button onClick={this.logout}>Log Out</Button>
: <Button bsStyle="primary" onClick={auth.login}>Log In</Button>
}
</Navbar.Form>
Actually even without ?:
it indents last }
wrongly
Finally got around to looking at this. I believe I've fixed the issue (all the issues reported in this thread) by improving the heuristic for detecting whether we've left a jsxRegion across a line break. Please let me know if you find that this is still a problem—or, of course, if you find any new and exciting problems.
Thanks for reporting!
Also, apologies that the fix (and fixes in general) take so long. I don't do any sort of regular development with JSX, so I have to page a bunch of stuff in to test and fix. Thanks for your patience!
Works awesome, thank you!
Works for me as well.
I have all dependencies. Here is my cut down .vimrc
Notice the line that the cursor is on has incorrect indent, but several lines later the correct indentation is present on the closing paren.
Here is the text.