Skip to content

vim-es6 doesn't indent properly regexes containing dot star .* #13

@edi9999

Description

@edi9999

Hi,

with the following code :

function f() {
    const r = /foo.*/;
    console.log(r);
}

If you run gg=G to reindent the full file, you will get :

function f() {
    const r = /foo.*/;
console.log(r);
}

which is obviously not expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions