diff options
| author | Zufu Liu <unknown> | 2019-11-17 07:41:50 +1100 | 
|---|---|---|
| committer | Zufu Liu <unknown> | 2019-11-17 07:41:50 +1100 | 
| commit | 03203843a7ccaef46938a7e54ff6c0fd838cafdf (patch) | |
| tree | d4abc2a21d53d88280a8a449ba1e03877fbaf56c /lexers/LexHTML.cxx | |
| parent | bca46389a09757f984f3415107fe1adf9e8271e4 (diff) | |
| download | scintilla-mirror-03203843a7ccaef46938a7e54ff6c0fd838cafdf.tar.gz | |
Backport: Feature [feature-requests:#1299] Make work for case sensitive mode.
Backport of changeset 7766:11b48094a651.
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 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) { | 
