aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZufu Liu <unknown>2019-11-17 07:41:50 +1100
committerZufu Liu <unknown>2019-11-17 07:41:50 +1100
commit03203843a7ccaef46938a7e54ff6c0fd838cafdf (patch)
treed4abc2a21d53d88280a8a449ba1e03877fbaf56c
parentbca46389a09757f984f3415107fe1adf9e8271e4 (diff)
downloadscintilla-mirror-03203843a7ccaef46938a7e54ff6c0fd838cafdf.tar.gz
Backport: Feature [feature-requests:#1299] Make work for case sensitive mode.
Backport of changeset 7766:11b48094a651.
-rw-r--r--lexers/LexHTML.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx
index 01d8e85e8..6a769f67b 100644
--- a/lexers/LexHTML.cxx
+++ b/lexers/LexHTML.cxx
@@ -270,7 +270,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) {