Skip to content

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

@strugee

Description

@strugee

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions