aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexHTML.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r--src/LexHTML.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index d0d584634..a67e3707a 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -220,9 +220,11 @@ static int classifyTagHTML(unsigned int start, unsigned int end,
isScript = 0 == strcmp(s, "script");
}
}
- if ((chAttr == SCE_H_TAGUNKNOWN) && !keywords)
+ if ((chAttr == SCE_H_TAGUNKNOWN) && !keywords) {
// No keywords -> all are known
chAttr = SCE_H_TAG;
+ isScript = 0 == strcmp(s, "script");
+ }
styler.ColourTo(end, chAttr);
return isScript ? SCE_H_SCRIPT : chAttr;
}