livebs / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

Extra commas in language regex sets #31

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open IE6 (used version 6.0)
2. Run custom code
3. See error about "this.regexList[...].regex" not being an object

What version of the product are you using? On what operating system?
Windows XP/IE6

To fix:
Remove extra commas at the end of language brush regex objects. This
(sadly) messes up the JS interpreter in IE6. IE expects another child to
parse, and cannot handle a non-existent next entry. (Sorry if my
terminology is off.)

for example,
Line 18/31 of Scripts/shBrushPython.js:
{ regex: new RegExp(this.GetKeywords(special), 'gm'), css: 'special' },

should be:
{ regex: new RegExp(this.GetKeywords(special), 'gm'), css: 'special' }

thanks!

Original issue reported on code.google.com by mattdenn...@gmail.com on 3 Sep 2007 at 10:07