Incorrect syntax highlighting in Javascript source files


#1

I’ve noticed that if I put the following in a *.js file, the syntax highlighting goes mental:

// This is a test
  this.superGroup.transform('t' + this.translation.x + ',' + this.translation.y + 'r' + this.rotation.deg + ',' + this.originX + ',' + this.originY + 's' + this.scaleFactor.x + ',' + this.scale.y + ',0,0');
// So why does it do this 'eh?

EDIT: I’ve also noticed that this only seems to occur when the line length is longer than 200 characters or there abouts. Could be a clue.


#2

See:


#3

Closing as duplicate.


#4