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 | 54c7ef44396c43b964060cb15e2ebdbf7359cb02 (patch) | |
tree | 19e0aaa84f43dff55da2a4adefbbccdcc543a201 /src | |
parent | 9f57c6efaee18d374da2abdb2e556830f2beb592 (diff) | |
download | scintilla-mirror-54c7ef44396c43b964060cb15e2ebdbf7359cb02.tar.gz |
Move SCI_LOADLEXERLIBRARY from platform layers to ScintillaBase.cxx.
This allows removal of related #include statements.
Diffstat (limited to 'src')
-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 296f5f8e6..aec08be55 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -62,6 +62,10 @@ #include "AutoComplete.h" #include "ScintillaBase.h" +#ifdef SCI_LEXER +#include "ExternalLexer.h" +#endif + using namespace Scintilla; ScintillaBase::ScintillaBase() { @@ -1088,6 +1092,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))); |