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:
- Do above
- See error
Originally from @zaharazod in microsoft/vscode#154706