aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-11-02 10:06:09 +1100
committerNeil <nyamatongwe@gmail.com>2019-11-02 10:06:09 +1100
commit3a41f3fb1bcefcb91f44e4b47a8d2f6c2e2e25b2 (patch)
treeab17dd6ced1730b66e7797240c5571eafbf14d0e /lexers/LexHTML.cxx
parent2a1998d7a1328a4d56f059a9bab8e7485a2098c4 (diff)
downloadscintilla-mirror-3a41f3fb1bcefcb91f44e4b47a8d2f6c2e2e25b2.tar.gz
Rearrange code to allow more cases.
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 604e21152..6b3748859 100644
--- a/lexers/LexHTML.cxx
+++ b/lexers/LexHTML.cxx
@@ -286,9 +286,10 @@ 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;
+ }
+ if (chAttr != SCE_H_TAGUNKNOWN) {
styler.ColourTo(end, chAttr);
}
if (chAttr == SCE_H_TAG) {