Using regular expression I note that the pattern delimiter are not correctly regognized, expecially if I include one character normally used to delimit literal string.
For example:
Code: Select all
var myRegExp=/('|/g;
var mySecondVar;
var myThirdVar;
the second character after the pattern start delimiter (slash) is the single quote. All the rest of the code after that character is uncorrectly recognized ad literal string (syntax hilighting show the code in the related color).
Obiously the / character has not to be confused with the divide operator: the difference lies in the fact that a slash character, used as divide operator, cannot be the first one in a expression.
So if we have
Code: Select all
myVar = function(/('|/g,otherParma);
Code: Select all
function(
If the / character is not the first character of an expression and is preceded by a string delimiter (single quote or double quote) it must be recognized ad a part of the literal.
Can I use some setting(s) of the syntax file to make RjTextEd able to correctly recognize regexp pattern delimiter?
Thank you in advance for the reply