Sublime Forum

Coloration error with regex in JS

#1

Hi,

I’m having an issue with the following javascript code :

// previous js code (coloration ok) //... this._notAllowedCharsRegexp = //\\?*:|\"<>]/g; // escaped quote in regex this._originalDocumentName = originalDocumentName.replace(this._notAllowedCharsRegexp, ""); // coloration is bad starting from here //... // following js code

The coloration is bad for the rest of the document…

Thx!

0 Likes