Skip to content

Commit

Permalink
Move method around to (hopefully) address the false alarm on x86 buil…
Browse files Browse the repository at this point in the history
…d from VirusTotal.
  • Loading branch information
blu3mania committed Apr 3, 2022
1 parent 806bead commit 3977d02
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Plugin/Lexer/LexerDefinition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 3977d02

Please sign in to comment.