Use the error style for the entire thing-that-can't-be-a-tag-name rather than just the first character when a backslash is followed by garbage in an override block

Originally committed to SVN as r5786.
This commit is contained in:
Thomas Goyne 2011-10-26 02:48:08 +00:00
parent 48070be3a3
commit f9f84b18f7

View file

@ -400,7 +400,7 @@ void SubsTextEditCtrl::UpdateStyle() {
else if ((in_parens && style != STYLE_TAG) || in_unparened_arg || (style == STYLE_TAG && ((cur_char < 'A' || cur_char > 'z') || (cur_char > 'Z' && cur_char < 'a')))) {
new_style = STYLE_PARAMETER;
}
else if (style != STYLE_TAG && style != STYLE_PARAMETER) {
else if (style != STYLE_TAG && style != STYLE_PARAMETER && style != STYLE_ERROR) {
new_style = STYLE_COMMENT;
}
}