From 4513adf441ef121aeea4de14912ad48cf99473c3 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 15 Aug 2010 09:28:08 +1000 Subject: Ensure lexers linked in whenever asked to find a lexer. --- src/Catalogue.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Catalogue.cxx b/src/Catalogue.cxx index 70394aeb1..a7ec50018 100644 --- a/src/Catalogue.cxx +++ b/src/Catalogue.cxx @@ -29,6 +29,7 @@ static std::vector lexerCatalogue; static int nextLanguage = SCLEX_AUTOMATIC+1; const LexerModule *Catalogue::Find(int language) { + Scintilla_LinkLexers(); for (std::vector::iterator it=lexerCatalogue.begin(); it != lexerCatalogue.end(); ++it) { if ((*it)->GetLanguage() == language) { @@ -39,6 +40,7 @@ const LexerModule *Catalogue::Find(int language) { } const LexerModule *Catalogue::Find(const char *languageName) { + Scintilla_LinkLexers(); if (languageName) { for (std::vector::iterator it=lexerCatalogue.begin(); it != lexerCatalogue.end(); ++it) { -- cgit v1.2.3