Fixing bug in JS regex syntax highlighting