From 45674820f1033b465e8c40c7ba3e0988b438c339 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 20 May 2000 13:14:41 +0000 Subject: Lexer changes from Philippe. --- src/LexHTML.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/LexHTML.cxx') 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); -- cgit v1.2.3