aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Catalogue.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Catalogue.cxx b/src/Catalogue.cxx
index d9e0172d5..e3fcddafb 100644
--- a/src/Catalogue.cxx
+++ b/src/Catalogue.cxx
@@ -53,6 +53,8 @@ int Scintilla_LinkLexers() {
return 0;
initialised = 1;
+#if !defined(SCI_EMPTYCATALOGUE)
+
// Shorten the code that declares a lexer and ensures it is linked in by calling a method.
#define LINK_LEXER(lexer) extern LexerModule lexer; catalogueDefault.AddLexerModule(&lexer);
@@ -188,5 +190,7 @@ int Scintilla_LinkLexers() {
//--Autogenerated -- end of automatically generated section
+#endif
+
return 1;
}