aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexHTML.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-05-20 13:14:41 +0000
committernyamatongwe <unknown>2000-05-20 13:14:41 +0000
commit45674820f1033b465e8c40c7ba3e0988b438c339 (patch)
treeb09e812aee4aef0bd71b9c49b0b9016c07498026 /src/LexHTML.cxx
parent02e0afd5a9d78f997df5e498550e5b2832ca5aa0 (diff)
downloadscintilla-mirror-45674820f1033b465e8c40c7ba3e0988b438c339.tar.gz
Lexer changes from Philippe.
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r--src/LexHTML.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index 653aa4653..0b31cba39 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -353,6 +353,13 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
styler.ColourTo(i, state);
state = SCE_H_DEFAULT;
}
+#ifdef OLD /* PL 2000/05/18 -- An bad entity may stop on a non-alphabetic character */
+#else /* OLD PL 2000/05/18 */
+ if (ch != '#' && !isalnum(ch)) { // Should check that '#' follows '&', but it is unlikely anyway...
+ styler.ColourTo(i, SCE_H_TAGUNKNOWN);
+ state = SCE_H_DEFAULT;
+ }
+#endif /* OLD PL 2000/05/18 */
} else if (state == SCE_H_TAGUNKNOWN) {
if (!ishtmlwordchar(ch) && ch != '/' && ch != '-') {
int eClass = classifyTagHTML(styler.GetStartSegment(), i - 1, keywords, styler);