diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-12-13 10:15:42 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-12-13 10:15:42 +1100 |
| commit | 81797180bc69d9dd134e226adb9a27b7d71e9a3b (patch) | |
| tree | 43ac50b3dad16e3f57f1bdac316559118a57e1a9 /src/ScintillaBase.cxx | |
| parent | 40b67336c8ac74c0ce729035b7b088c8ba0ca6ad (diff) | |
| download | scintilla-mirror-81797180bc69d9dd134e226adb9a27b7d71e9a3b.tar.gz | |
Backport: Move SCI_LOADLEXERLIBRARY from platform layers to ScintillaBase.cxx.
This allows removal of related #include statements.
Backport of changeset 7860:4ca969c2fa45.
Diffstat (limited to 'src/ScintillaBase.cxx')
| -rw-r--r-- | src/ScintillaBase.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 1e7695d5f..9757b8400 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -61,6 +61,10 @@ #include "AutoComplete.h" #include "ScintillaBase.h" +#ifdef SCI_LEXER +#include "ExternalLexer.h" +#endif + using namespace Scintilla; ScintillaBase::ScintillaBase() { @@ -1087,6 +1091,10 @@ sptr_t ScintillaBase::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPara case SCI_GETLEXERLANGUAGE: return StringResult(lParam, DocumentLexState()->GetName()); + case SCI_LOADLEXERLIBRARY: + LexerManager::GetInstance()->Load(ConstCharPtrFromSPtr(lParam)); + break; + case SCI_PRIVATELEXERCALL: return reinterpret_cast<sptr_t>( DocumentLexState()->PrivateCall(static_cast<int>(wParam), reinterpret_cast<void *>(lParam))); |
