mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
Merge pull request #2583 from RaiKoHoff/Dev_NewFeatures
Non case sensitive style attribute search (find file extension…
This commit is contained in:
commit
4c28673d7d
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user