mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
Merge pull request #1330 from RaiKoHoff/Dev_RC_Fixes
Fix small bug in file extension matching for Lexer selection
This commit is contained in:
commit
c2e88b1bb2
@ -1 +1 @@
|
||||
2249
|
||||
2250
|
||||
|
||||
@ -1 +1 @@
|
||||
"RC2"
|
||||
"RC"
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
<assemblyIdentity
|
||||
name="Notepad3"
|
||||
processorArchitecture="*"
|
||||
version="5.19.611.2249"
|
||||
version="5.19.611.2250"
|
||||
type="win32"
|
||||
/>
|
||||
<description>Notepad3 RC2</description>
|
||||
<description>Notepad3 RC</description>
|
||||
</assembly>
|
||||
|
||||
@ -902,18 +902,20 @@ void Style_SetLexerSpecificProperties(const int lexerId)
|
||||
static inline bool _IsItemInStyleString(LPCWSTR lpszStyleStrg, LPCWSTR item)
|
||||
{
|
||||
LPCWSTR pFound = StrStrI(lpszStyleStrg, item);
|
||||
if (pFound) {
|
||||
const WCHAR pre = (pFound == lpszStyleStrg) ? L' ' : pFound[-1];
|
||||
while (pFound) {
|
||||
WCHAR const pre = (pFound == lpszStyleStrg) ? L' ' : pFound[-1];
|
||||
if ((pre == L' ') || (pre == L';')) {
|
||||
const WCHAR end = pFound[lstrlen(item)];
|
||||
WCHAR const end = pFound[StringCchLenW(item, 0)];
|
||||
if ((end == L'\0') || (end == L' ') || (end == L';')) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
pFound = StrStrI(pFound + 1, item);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
//=============================================================================
|
||||
//
|
||||
// Style_SetLexer()
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#define VERSION_MAJOR 5
|
||||
#define VERSION_MINOR 19
|
||||
#define VERSION_REV 611
|
||||
#define VERSION_BUILD 2249
|
||||
#define VERSION_BUILD 2250
|
||||
#define SCINTILLA_VER 416
|
||||
#define ONIGMO_REGEX_VER 6.2.0
|
||||
#define VERSION_PATCH RC2
|
||||
#define VERSION_PATCH RC
|
||||
|
||||
Loading…
Reference in New Issue
Block a user