aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-11-02 08:44:24 +1100
committerNeil <nyamatongwe@gmail.com>2019-11-02 08:44:24 +1100
commit56fa42417b5feaae7618e841e2e033126be76d78 (patch)
treee2b23d9b4ad871b6f9ac1ce9b7dcf68d72be15f4 /lexers/LexHTML.cxx
parent55d1068389ac95f94ffe6ac0a5ca87820af9b363 (diff)
downloadscintilla-mirror-56fa42417b5feaae7618e841e2e033126be76d78.tar.gz
Backport: Feature [feature-requests:#1320] Fix non-alphabetic characters in unknown tags.
Backport of changeset 7751:5f4c6b38cb16.
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r--lexers/LexHTML.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx
index 8fce24581..bf4a1a32a 100644
--- a/lexers/LexHTML.cxx
+++ b/lexers/LexHTML.cxx
@@ -287,10 +287,11 @@ int classifyTagHTML(Sci_PositionU start, Sci_PositionU end,
char chAttr = SCE_H_TAGUNKNOWN;
if (!tag.empty() && (tag[0] == '!')) {
chAttr = SCE_H_SGML_DEFAULT;
+ styler.ColourTo(end, chAttr);
} else if (!keywords || keywords.InList(tag.c_str())) {
chAttr = SCE_H_TAG;
+ styler.ColourTo(end, chAttr);
}
- styler.ColourTo(end, chAttr);
if (chAttr == SCE_H_TAG) {
if (allowScripts && (tag == "script")) {
// check to see if this is a self-closing tag by sniffing ahead