Skip to content

Regular expression breaks syntax highlighting #52

@alexr00

Description

@alexr00

Regular expression breaks syntax highlighting for remainder of the file. The offending line (perl) is here:

if ((($var, $val) = /^\s*([_a-zA-Z0-9]+)\s*=\s*(.*)/) != 2) {

The *'s after each \s seem to be relevant; deleting one fixes the formatting (but deleting two breaks it again).

Steps to Reproduce:

  1. Do above
  2. See error

Originally from @zaharazod in microsoft/vscode#154706

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