Randomly occurring pairs of "/" in a row treated as regex delimiters
Highlight this code as JavaScript (e.g. save it as test.js in Gedit):
var x = this.x, y = this.y;
var changed = false;
if (x.span / y.span > ratio) { // width greater
x.span = y.span * ratio;
if (x.span < x.minSpan) { // below minWidth
x.span = x.minSpan;
y.span = x.span / ratio;
}
changed = true;
} else if (x.span / y.span < ratio) { // height greater
var tmpHeight = y.span;
y.span = x.span / ratio;
changed = true;
}
Here's the nonsensical resulting highlight:
Edited by Teo Tei