Skip to content

JavaScript: line continuations starting with . aren't lined up properly #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
strugee opened this issue Oct 26, 2016 · 0 comments
Open

Comments

@strugee
Copy link

strugee commented Oct 26, 2016

Given the following unindented code:

function foo() {
readableStream.pipe(throughStream)
.pipe(writableStream);
}

the correct indentation with smart-tabs-mode enabled is:

function foo() {
<tab>readableStream.pipe(throughStream)
<tab>              .pipe(writableStream);
}

i.e. the .s should line up. (This pattern is quite common in Node programs.)

However, smart-tabs-mode indents this as:

function foo() {
<tab>readableStream.pipe(throughStream)
<tab><tab>.pipe(writableStream);
}

Which is obviously incorrect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants