From f9f84b18f79df4fb8a0a5ba1613664ca7c0a679d Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 26 Oct 2011 02:48:08 +0000 Subject: [PATCH] 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. --- aegisub/src/subs_edit_ctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/subs_edit_ctrl.cpp b/aegisub/src/subs_edit_ctrl.cpp index 01087f78a..9258fd0af 100644 --- a/aegisub/src/subs_edit_ctrl.cpp +++ b/aegisub/src/subs_edit_ctrl.cpp @@ -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; } }