Last modified: 2008-08-15 20:33:41 UTC
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>
This is a GeSHi bug which is fixed in the latest version. Marking this as a duplicate of 10967. *** This bug has been marked as a duplicate of bug 10967 ***