From 54c7ef44396c43b964060cb15e2ebdbf7359cb02 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 13 Dec 2019 10:15:42 +1100 Subject: Move SCI_LOADLEXERLIBRARY from platform layers to ScintillaBase.cxx. This allows removal of related #include statements. --- src/ScintillaBase.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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( DocumentLexState()->PrivateCall(static_cast(wParam), reinterpret_cast(lParam))); -- cgit v1.2.3