diff options
Diffstat (limited to 'lexers/LexHTML.cxx')
| -rw-r--r-- | lexers/LexHTML.cxx | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx index 8a06e9884..7519afeb2 100644 --- a/lexers/LexHTML.cxx +++ b/lexers/LexHTML.cxx @@ -269,7 +269,8 @@ void classifyAttribHTML(Sci_PositionU start, Sci_PositionU end, const WordList &  // https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-core-concepts  bool isHTMLCustomElement(const std::string &tag) {  	// check valid HTML custom element name: starts with an ASCII lower alpha and contains hyphen. -	if (tag.length() < 2 || !IsLowerCase(tag[0])) { +	// IsUpperOrLowerCase() is used for `html.tags.case.sensitive=1`. +	if (tag.length() < 2 || !IsUpperOrLowerCase(tag[0])) {  		return false;  	}  	if (tag.find('-') == std::string::npos) { | 
