Merge pull request #2583 from RaiKoHoff/Dev_NewFeatures

Non case sensitive style attribute search (find file extension…
This commit is contained in:
Rainer Kottenhoff 2020-08-01 17:11:23 +02:00 committed by GitHub
commit 4c28673d7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -961,7 +961,7 @@ void Style_SetLexerSpecificProperties(const int lexerId)
//
static bool Style_StrGetAttributeEx(LPCWSTR lpszStyle, LPCWSTR key, const size_t keyLen)
{
LPCWSTR p = StrStr(lpszStyle, key);
LPCWSTR p = StrStrI(lpszStyle, key);
while (p) {
WCHAR chPrev = (p == lpszStyle) ? L';' : p[-1];
if (chPrev == L' ') {
@ -978,7 +978,7 @@ static bool Style_StrGetAttributeEx(LPCWSTR lpszStyle, LPCWSTR key, const size_t
return true;
}
}
p = StrStr(p, key);
p = StrStrI(p, key);
}
return false;
}