When I write this JavaScript piece of code in Sublime Text 3, it formats it wrong:
url.split('&').map(a => /^range\=/.test(a) ? a.replace(/\d+\-\d+/g, '\x00') : a);
The character number 25 represents the start of a regular expression, but it is not formated like so. However, the character at position 34 is formated like start of a regex, but it is actually end of a regex. You can see it here.
The syntax of my code is correct, the only problem is because it is wrongly formatted, so it becomes hard to write further code. Is it a bug in Sublime Text 3? I am using the most recent version.