Is it possible to correct the highlight code?
Currently with JavaScript, regular expressions fail to be properly highlighted when a double quote is used in the regular expression.
It also badly affects the escape slash
var quotesProblem = /[+.,*ª!·$%&()= ?\\^`´";:_\\-]/;
A simplified version of the problem is:
var symbols = /[\\^"_\\-]/;
The problem affects both double quotes and single quotes within regular expressions.
Use any other characters to see how the regular expression highlighting should look.
var re = /[\\^_\\-]/;
The reason why it’s a significant issue is that it screws up all of the highlighting following the misunderstood double quote.
var quotesProblem = /[\\^"_\\-]/;
var re = /[\\^_\\-]/;
f (...) {
...
} else if (...) {
...
}
The above highlighting should normally look like this without the quotes problem:
var noQuotesProblem = /[\\^_\\-]/;
var re = /[\\^_\\-]/;
if (...) {
...
} else if (...) {
...
}