Skip to content

Vim indentation broken with commented struct fields. #14041

Closed
@mahkoh

Description

@mahkoh

Consider the following code:

struct A {
    b: int,
    //
    c: int,
}

Opening a new line while on the c-line puts the cursor here:

struct A {
    b: int,
    //
    c: int,
           X
}

I'm using the indent file from master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions