aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-08-15 09:28:08 +1000
committernyamatongwe <devnull@localhost>2010-08-15 09:28:08 +1000
commit4513adf441ef121aeea4de14912ad48cf99473c3 (patch)
tree36fc2d98e86b8049c2218c392afed1edc3fb7387 /src
parent9d6c44722a773cb26aea69746805b38326b1559d (diff)
downloadscintilla-mirror-4513adf441ef121aeea4de14912ad48cf99473c3.tar.gz
Ensure lexers linked in whenever asked to find a lexer.
Diffstat (limited to 'src')
-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) {