mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-31 01:34:58 +02:00
Release 5.5.4 (https://www.scintilla.org/scintilla554.zip) Released 18 December 2024. Update to Unicode 15.1. Issue #285. Improve performance of SCI_BRACEMATCH. Feature #1533. Improve performance of DBCS text. Feature #1535. Fix wrapping removed lines. Bug #2456. Fix moving line down to empty final line and moving empty final line up. Bug #2457. On GTK, allow middle click to insert multiple times within a document. Geany Issue #2629. Release 5.4.2 (https://www.scintilla.org/lexilla542.zip) Released 18 December 2024. Update to Unicode 15.1. Issue #285. Lexer added for Nix "nix". Pull request #282. JavaScript: Use correct SCE_HJA_TEMPLATELITERAL style for server-side template literals in HTML instead of client-side style. Issue #286. JavaScript: Use correct SCE_HJ_SYMBOLS style for '.' after regex instead of SCE_HJ_WORD. Prevent empty word assertion when non-word character after regex flag. Issue #289. PHP: Fix unstable lexing with substyled keyword and unterminated string. Issue #288. Rust: Add C string and raw C string literal styles SCE_RUST_CSTRING and SCE_RUST_CSTRINGR. Pull request #292, Issue #268. TOML: Don't treat keys without values as errors. Pull request #283. Zig: Add SCE_ZIG_IDENTIFIER_STRING for identifiers expressed as strings. Pull request #287. Fix #15817, fix #10528, fix #15801, close #15982
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
// Scintilla source code edit control
|
|
/** @file ScintillaDLL.cxx
|
|
** DLL entry point for Scintilla.
|
|
**/
|
|
// Copyright 1998-2018 by Neil Hodgson <neilh@scintilla.org>
|
|
// The License.txt file describes the conditions under which this software may be distributed.
|
|
|
|
#include <cstdint>
|
|
|
|
#undef _WIN32_WINNT
|
|
#define _WIN32_WINNT 0x0500
|
|
#undef WINVER
|
|
#define WINVER 0x0500
|
|
#include <windows.h>
|
|
|
|
#include "ScintillaTypes.h"
|
|
#include "ScintillaWin.h"
|
|
|
|
using namespace Scintilla;
|
|
|
|
extern "C"
|
|
__declspec(dllexport)
|
|
sptr_t __stdcall Scintilla_DirectFunction(
|
|
Internal::ScintillaWin *sci, UINT iMessage, uptr_t wParam, sptr_t lParam) {
|
|
return Internal::DirectFunction(sci, iMessage, wParam, lParam);
|
|
}
|
|
|
|
extern "C" int APIENTRY DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpvReserved) {
|
|
//Platform::DebugPrintf("Scintilla::DllMain %d %d\n", hInstance, dwReason);
|
|
if (dwReason == DLL_PROCESS_ATTACH) {
|
|
if (!Internal::RegisterClasses(hInstance))
|
|
return FALSE;
|
|
} else if (dwReason == DLL_PROCESS_DETACH) {
|
|
if (lpvReserved == NULL) {
|
|
Internal::ResourcesRelease(true);
|
|
}
|
|
}
|
|
return TRUE;
|
|
}
|