forked from mia/Aegisub
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:
parent
48070be3a3
commit
f9f84b18f7
1 changed files with 1 additions and 1 deletions
|
@ -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')))) {
|
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;
|
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;
|
new_style = STYLE_COMMENT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue