aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-08-15 09:28:08 +1000
committernyamatongwe <unknown>2010-08-15 09:28:08 +1000
commit0ecc157a84f1f7afe3164c7f5c64855aa6610274 (patch)
tree78c807e0ac126c2ba07a7bebab31305bb8e3fa03
parent7af8c22e99e8c13bf92beb7319464d0bf8b213ee (diff)
downloadscintilla-mirror-0ecc157a84f1f7afe3164c7f5c64855aa6610274.tar.gz
Ensure lexers linked in whenever asked to find a lexer.
-rw-r--r--src/Catalogue.cxx2
1 files changed, 2 insertions, 0 deletions
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<LexerModule *> lexerCatalogue;
static int nextLanguage = SCLEX_AUTOMATIC+1;
const LexerModule *Catalogue::Find(int language) {
+ Scintilla_LinkLexers();
for (std::vector<LexerModule *>::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<LexerModule *>::iterator it=lexerCatalogue.begin();
it != lexerCatalogue.end(); ++it) {