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
commita085cc290740259d076f1e19c4b2d1002853f2b7 (patch)
tree879dec78954d8ee5d43d77f2124cf3dcca584df5
parentc01af44367b40f9b15d10f58dc05d439908b6dee (diff)
downloadscintilla-mirror-a085cc290740259d076f1e19c4b2d1002853f2b7.tar.gz
Feature [feature-requests:#1299] Make work for case sensitive mode.
-rw-r--r--lexers/LexHTML.cxx3
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) {