diff options
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r-- | src/LexHTML.cxx | 7 |
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); |