diff options
author | Neil <nyamatongwe@gmail.com> | 2019-12-14 08:09:58 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-12-14 08:09:58 +1100 |
commit | a8141c4c11ad77014802d003d649abc8335a4f70 (patch) | |
tree | 25d837bc62a0f1e78258c5f725e6089e171c5256 /src | |
parent | f142d93df48c3b9e07edd25425627ddeeb071520 (diff) | |
download | scintilla-mirror-a8141c4c11ad77014802d003d649abc8335a4f70.tar.gz |
Remove links to lexers with SCI_EMPTYCATALOGUE definition.
This allows building a version of SciTE that is statically linked to Scintilla
and does not include any lexers but allows the use of lexers provided by
loading a DLL.
Diffstat (limited to 'src')
-rw-r--r-- | src/Catalogue.cxx | 4 |
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; } |