diff options
Diffstat (limited to 'src/ExternalLexer.cxx')
-rw-r--r-- | src/ExternalLexer.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ExternalLexer.cxx b/src/ExternalLexer.cxx index 9e175a88f..1c00ec02e 100644 --- a/src/ExternalLexer.cxx +++ b/src/ExternalLexer.cxx @@ -221,6 +221,10 @@ void LexerManager::Load(const char *path) { } void LexerManager::LoadLexerLibrary(const char *module) { + for (LexerLibrary *ll = first; ll; ll= ll->next) { + if (strcmp(ll->m_sModuleName.c_str(), module) == 0) + return; + } LexerLibrary *lib = new LexerLibrary(module); if (NULL != first) { last->next = lib; |