Author: manishsmail
Description:
In JavaScript, if a regexp has a literal quotation mark, ("), the text is highlighted as if the " was a string boundary:
<Source lang="javascript">
var s="\"abcd\"abcd\""
creates string: "abcd"abcd" (the "s ar literal)
remove all "s with the regxp: /"/g
s.replace(/\"/g,"")
This code is supposed to be green, but is blue, as the literal quotation mark in the regxp is treated as a string boundary
var colorRectifier = "\""
To correct the syntax highlighting, you have to add a dummy string containing a literal "
</source>
Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#JS_syntax_highighting_RegExp_error