diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/KeyWords.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/KeyWords.cxx b/src/KeyWords.cxx index b87853a19..7b0ead33f 100644 --- a/src/KeyWords.cxx +++ b/src/KeyWords.cxx @@ -98,6 +98,10 @@ static void ColouriseNullDoc(unsigned int startPos, int length, int, WordList *[ LexerModule lmNull(SCLEX_NULL, ColouriseNullDoc, "null"); #ifdef __vms +#define LINK_LEXERS +#endif + +#ifdef LINK_LEXERS // The following code forces a reference to all of the Scintilla lexers. // If we don't do something like this, then the linker tends to "optimize" @@ -106,6 +110,10 @@ LexerModule lmNull(SCLEX_NULL, ColouriseNullDoc, "null"); // Taken from wxWindow's stc.cpp. Walter. int wxForceScintillaLexers(void) { + Scintilla_LinkLexers(); +} + +int Scintilla_LinkLexers() { extern LexerModule lmAda; extern LexerModule lmAVE; extern LexerModule lmBaan; |