From a085cc290740259d076f1e19c4b2d1002853f2b7 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Sun, 17 Nov 2019 07:41:50 +1100 Subject: Feature [feature-requests:#1299] Make work for case sensitive mode. --- lexers/LexHTML.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lexers/LexHTML.cxx') 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) { -- cgit v1.2.3