diff options
| -rw-r--r-- | lexers/LexHTML.cxx | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx index 17c0846aa..8a06e9884 100644 --- a/lexers/LexHTML.cxx +++ b/lexers/LexHTML.cxx @@ -283,9 +283,12 @@ int classifyTagHTML(Sci_PositionU start, Sci_PositionU end,                      bool caseSensitive, bool isXml, bool allowScripts,                      const std::set<std::string> &nonFoldingTags) {  	std::string tag; -	// Copy after the '<' +	// Copy after the '<' and stop before ' '  	for (Sci_PositionU cPos = start; cPos <= end; cPos++) {  		const char ch = styler[cPos]; +		if (IsASpace(ch)) { +			break; +		}  		if ((ch != '<') && (ch != '/')) {  			tag.push_back(caseSensitive ? ch : MakeLowerCase(ch));  		} | 
