diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-16 16:57:48 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-16 16:57:48 +1000 |
commit | c24110790c646f40c307c88656c3eca7ed134e01 (patch) | |
tree | 6c080822ab9cf08e25541fa7ef07d99913b3a481 /lexlib/LexerModule.h | |
parent | 27f9d447ab961b5ec314a290622afdb12ab5f0e2 (diff) | |
download | scintilla-mirror-c24110790c646f40c307c88656c3eca7ed134e01.tar.gz |
Backport: Move implementations into cxx file.
Replace 0 and NULL with nullptr.
Update comments.
Backport of changeset 6955:440e02c389df.
Diffstat (limited to 'lexlib/LexerModule.h')
-rw-r--r-- | lexlib/LexerModule.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lexlib/LexerModule.h b/lexlib/LexerModule.h index c9ec4700d..ab338bec6 100644 --- a/lexlib/LexerModule.h +++ b/lexlib/LexerModule.h @@ -20,8 +20,9 @@ typedef ILexer *(*LexerFactoryFunction)(); /** * A LexerModule is responsible for lexing and folding a particular language. - * The class maintains a list of LexerModules which can be searched to find a + * The Catalogue class maintains a list of LexerModules which can be searched to find a * module appropriate to a particular language. + * The ExternalLexerModule subclass holds lexers loaded from DLLs or shared libraries. */ class LexerModule { protected: @@ -35,20 +36,21 @@ protected: public: const char *languageName; - LexerModule(int language_, + LexerModule( + int language_, LexerFunction fnLexer_, - const char *languageName_=0, - LexerFunction fnFolder_=0, - const char * const wordListDescriptions_[] = NULL, + const char *languageName_=nullptr, + LexerFunction fnFolder_= nullptr, + const char * const wordListDescriptions_[]=nullptr, const LexicalClass *lexClasses_=nullptr, size_t nClasses_=0); - LexerModule(int language_, + LexerModule( + int language_, LexerFactoryFunction fnFactory_, const char *languageName_, - const char * const wordListDescriptions_[] = NULL); - virtual ~LexerModule() { - } - int GetLanguage() const { return language; } + const char * const wordListDescriptions_[]=nullptr); + virtual ~LexerModule(); + int GetLanguage() const; // -1 is returned if no WordList information is available int GetNumWordLists() const; |