Skip to content

indentRainbow.ignoreLinePatterns example for settings.json and comment mismatch. #201

@joshinils

Description

@joshinils
  // Example of regular expression in JSON (note double backslash to escape characters)
  "indentRainbow.ignoreLinePatterns" : [
    "/[ \t]* [*]/g", // lines begining with <whitespace><space>*
    "/[ \t]+[/]{2}/g" // lines begininning with <whitespace>//
  ]

\t is a tab.
\\s is whitespace (equivalent to [\\r\\n\\t\\f\\v ]).

I think including an example with an escaped backslash would be good too, ref #189.

(Technically, comments aren't a thing in JSON, but VS Code ignores this, too. 🤷‍♂️ )

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