-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Labels
committedIssue fixed in repository but not in releaseIssue fixed in repository but not in releasehtmlCaused by the hypertext lexerCaused by the hypertext lexer
Description
For this SGML, the '{' is not allowed and terminates SCE_H_SGML_COMMAND but the command is empty which fails inside isWordHSGML.
<!{2}>Potential fix:
+++ b/lexers/LexHTML.cxx
@@ -453,6 +453,8 @@ void classifyWordHTPHP(Sci_PositionU start, Sci_PositionU end, const WordList &k
}
bool isWordHSGML(Sci_PositionU start, Sci_PositionU end, const WordList &keywords, const Accessor &styler) {
+ if (end < start)
+ return false;
const std::string s = styler.GetRange(start, end + 1);
return keywords.InList(s);
}Metadata
Metadata
Assignees
Labels
committedIssue fixed in repository but not in releaseIssue fixed in repository but not in releasehtmlCaused by the hypertext lexerCaused by the hypertext lexer