Vala - Highlighting issue with regex and "not"
I have this code:
int main(string[] argv) {
if(/^(?=[^\d])[^\s~`!#%^&*()\-\+={}\[\]|\\\/?.>,<'";:]+$/.match("str")) {
}
if(!/^(?=[^\d])[^\s~`!#%^&*()\-\+={}\[\]|\\\/?.>,<'";:]+$/.match("str")) {
}
}
The first regex is highlighted correctly, but the second one is not recognized. Instead of it, it is recognized as a bunch of symbols and then a string literal.
This bug invalidates all highlighting after the regex.
Tested in org.gnome.TextEditor.Devel
(From nightly) as it uses the sourceview
Edited by JCWasmx86