Skip to content

[feature request] indentRainbow.markLinePatterns to highlight lines which are wrongly indented #200

@joshinils

Description

@joshinils

I've found that setting up a regex for ignoring some lines also made it necessary to include others.

"indentRainbow.ignoreLinePatterns" : [
    "/^(    )*  \\| [^\\s\\n]/gm",
]

This ignores lines where a pipe is at a specific location when indenting with 4 spaces:
Image
This correctly ignores lines 27 and 31.

However, I'd like to have this as a counterpart:

"indentRainbow.markLinePatterns" : [
    "/^(    )*\\|/gm",
]

Such that lines 5, 13, 21, 29, and 37 are also marked in red as incorrect, they start with a multiple of four spaces where the next character is a pipe.

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