derekr/jquery.sugar

Syntax highlighting errors

Closed this issue · 1 comments

I sent a bug report to macrabbit and they responded with this:

"Thanks for the bug report! What Sugars are you using? The default Javascript sugar does not include syntax coloring for regular expressions, so it looks like a third party Sugar is injecting a regular expression definition that is improperly including string zones (the error you're seeing is that the quotation mark in the regex is improperly opening a string rather than being ignored as just another regex character)."

Here are two screenshots of the problem (both showcase different problems):

Screenshot 1:
http://is.gd/gQBd3

Screenshot 2:
http://is.gd/gQBfK

Ok I've narrowed the problem down to being the fault of both Espresso and the jQuery.sugar

Here are two more screenshots to compare with each other. The first with no sugars enabled, the second using the jQuery.sugar:

http://img210.imageshack.us/img210/6461/upshot0kmt3vly.png
http://img571.imageshack.us/img571/6994/upshot1dsqxc1n.png