diff --git a/src/Plugin/Lexer/LexerDefinition.cpp b/src/Plugin/Lexer/LexerDefinition.cpp index cbc3963..204ff9e 100644 --- a/src/Plugin/Lexer/LexerDefinition.cpp +++ b/src/Plugin/Lexer/LexerDefinition.cpp @@ -38,6 +38,13 @@ namespace papyrus { } } + ILexer* SCI_METHOD CreateLexer(const char* name) { + if (strcmp(name, Lexer::name()) == 0) { + return Lexer::factory(); + } + return nullptr; + } + // Not required anymore, but kept for compatibility with Notepad++ 8.3 - 8.3.3 void SCI_METHOD GetLexerStatusText(int index, TCHAR* text, int length) { // From NPP's Parameters.h: @@ -60,11 +67,4 @@ namespace papyrus { return nullptr; } - ILexer* SCI_METHOD CreateLexer(const char* name) { - if (strcmp(name, Lexer::name()) == 0) { - return Lexer::factory(); - } - return nullptr; - } - } // namespace